Quick answer
Sensitive personal data under the GDPR means the Article 9 special categories: racial or ethnic origin, political opinions, religious or philosophical beliefs, union membership, genetic and biometric data, health, and sex life or orientation. Processing is prohibited unless an exception applies.
What is sensitive personal data under the GDPR?
Under the GDPR, "sensitive personal data" is the everyday name for special categories of personal data, defined in Article 9. The regulation lists them: personal data revealing racial or ethnic origin, political opinions, religious or philosophical beliefs, or trade union membership; genetic data; biometric data used to uniquely identify a person; data concerning health; and data concerning a person's sex life or sexual orientation. The European Commission's citizen guidance lists the same eight groups.
The rule attached to the list is a prohibition. As the Commission puts it, processing these data is prohibited as a general rule, unless an exception applies. That is a stricter starting point than for ordinary personal data, where you only need one of six lawful bases. For special categories you need a lawful basis and one of the Article 9 conditions.
For an analytics or website owner, the practical question is not "do we run a hospital", but "could any field we collect reveal one of these categories, even by accident?" A free-text chat box, a form field, a search term or a URL can all do it. The aim is to keep these values out of the analytics stack altogether, because "never collected" is easier to defend than "collected and protected". Ordinary identifiers such as names and email addresses are a different, broader topic; see PII and PII examples.
Which categories count as special category data?
| Category | What it covers | Example fields and values |
|---|---|---|
| Racial or ethnic origin | Data revealing race or ethnicity | "Ethnicity" form field, "origin" in a survey |
| Political opinions | Data revealing political views | Party membership, a political donation page tag |
| Religious or philosophical beliefs | Data revealing faith or worldview | "Religion" field, a prayer-times preference |
| Trade union membership | Data revealing membership | "Union member" checkbox |
| Genetic data | Data on inherited or acquired genetic traits | DNA test results |
| Biometric data for identification | Technical processing that allows unique identification | Fingerprint or face template used to log in |
| Data concerning health | Physical or mental health, including care services | Diagnosis, medication, appointment type, symptom search |
| Sex life or sexual orientation | Data about either | "Orientation" field, dating-profile preferences |
Data about criminal convictions and offences is not on this list; Article 10 treats it separately, with its own conditions. Two clarifications from the UK regulator's guidance, which applies the same list under UK GDPR. A photo is not automatically biometric data: it becomes biometric only when specific technical processing allows or confirms unique identification. And the same category can appear without the word: appointment details and invoices can reveal health, for example physiotherapy sessions.
When is processing special category data allowed?
Because the general rule is a prohibition, you need an exception. The Commission lists examples: the person has given explicit consent; the data was manifestly made public by the person; it is needed to establish, exercise or defend legal claims; a law with adequate safeguards covers employment, social protection or public health; and a law with safeguards covers archiving, scientific or historical research, or statistics.
For analytics, the realistic route is almost never an exception. You do not need health or religion data to count visitors. The cheaper and safer decision is to design collection so special category data never enters, rather than to find a condition that covers it.
Consequences of getting it wrong are not small. Article 83(5) of the regulation sets the higher tier of administrative fines, up to EUR 20 million or 4% of worldwide annual turnover, whichever is higher, for infringements of the basic processing principles including Article 9. Article 35 requires a data protection impact assessment where special category data are processed on a large scale.
Can data become special category by inference?
Yes, and this is the case analytics teams miss. The UK ICO guidance says data counts as special category if you intend to infer one of these characteristics, or to treat someone differently on the basis of an inference, "regardless of how confident you are that the inference is correct".
The ICO examples show where the line sits:
- Holding a surname or a photo in a customer database does not by itself need a special category condition. Using it to infer ethnicity or religion does.
- A social media post about visiting a place of worship is unlikely to be special category data; inferring a belief from it, or targeting people on that basis, is.
- Step counts from a fitness tracker are not necessarily health data. Heart rate or BMI can reveal health status.
In analytics terms: a page called /clinic/diabetes-appointment in the URL, a search term "HIV test near me" in site search, or an event named viewed_cancer_support_group all let you infer health data about an identifiable visitor. Building an audience such as "visitors interested in X condition" to target them is exactly the inference the guidance describes.
What should you keep out of analytics?
| Where it leaks | Example | What to do |
|---|---|---|
| URL path and query | /results?condition=..., /appointments/oncology | Use neutral paths or exclude the path from tracking |
| Page title | "Your cancer screening results" | Use a generic title on pages shown after login |
| Site search terms | A visitor types a diagnosis | Do not record on-site search on health pages, or hash it away |
| Event properties | plan="substance-recovery" | Record a category code you control, not the sensitive label |
| Form fields | Free-text "reason for contact" | Never send field values to analytics; record that the form was submitted |
| Chat messages | A visitor describes symptoms in chat | Set retention, restrict who sees the inbox, do not feed text into analytics |
| Session replay | Typed values on screen | Keep input masking on and exclude sensitive pages |
| Audience lists | "Visitors who viewed pages about X" | Do not build segments from sensitive pages |
Two rules of thumb cover most of it. First, if a value would be sensitive in a spreadsheet next to a person's name, it is sensitive in an event property. Second, "anonymous" is not a defense on its own: if a visitor can be singled out by a persistent ID or later logged in, data attached to them is personal data.
What are common mistakes with sensitive data?
- Thinking only medical sites are affected. Any site with a free-text box, a support chat or a "tell us about yourself" form can receive health or belief data.
- Using the sensitive label as an event name. An event called
cancer_guide_downloadedis itself a data point about the visitor. Use a generic content-category identifier. - Relying on masking of emails and phone numbers. Pattern-based stripping catches addresses and numbers, not the words "my diagnosis is".
- Treating consent for analytics as consent for special categories. Article 9 needs a condition such as explicit consent, a higher bar than ordinary analytics consent.
- Forgetting derived data. Segments, scores and inferred interests built from sensitive pages are themselves sensitive.
How to keep special category data out of TapCub
TapCub gives you controls for collection; it does not classify what your pages mean, so the first step is yours.
- Map the risk. List pages and forms where visitors could reveal a category: health content, appointment pages, support forms, chat entry points.
- Exclude the pages. Use the script's
data-excludeattribute for pageviews, with exact paths or wildcards such as/clinic/*. It matches the path only, and it applies to pageviews, so custom events on the same page still send; do not calltapcub.trackthere either. - Keep event properties neutral. TapCub custom events keep at most 20 properties of strings, numbers and booleans, and its documentation says not to put raw input text in them. Send a code you control.
- Rely on defaults, and know their limits. Form submit tracking is off by default, and when on it records only the form id, name and action, never field values. Autocapture never captures password fields, never records visible element text by default, and text capture takes effect only at collection tier 3. Strings that look like an email or phone number are replaced with a placeholder, but that does not catch free-text diagnoses.
- Check chat and replay. The chat setting Mask sensitive data rewrites card numbers, Chinese ID numbers and phone numbers before storage, and leaves email as is; it does not detect health details. Session replay is off by default, masks input values by default and has an excluded-paths list for pages with payment, ID or medical forms.
- Use the privacy center. Configuration › Privacy center sets the collection tier, region rules, address truncation, retention and data-subject requests (export or delete).
TapCub does not give legal advice or decide whether an Article 9 condition applies to you.
Sources
- European Commission. How is my personal data protected: religious beliefs, sexual orientation, health, political views — the eight categories, the general prohibition and example exceptions. Read 2026-11-23.
- UK Information Commissioner's Office. What is special category data? — inference rule, names and photos, biometric data and health examples. Read 2026-11-23.
- EUR-Lex. Regulation (EU) 2016/679 (GDPR) — Article 9 (special categories), Article 35 (impact assessment) and Article 83(5) (fines).
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Analyst
Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.