TapCub is live — analytics, insights and live chat, free on one platform
Glossary

Sensitive Personal Data (GDPR Special Category Data): What Counts and What to Keep Out of Analytics

Sensitive personal data under the GDPR means the eight special categories in Article 9. What counts, when processing is allowed, how inference makes data sensitive, and where it leaks into analytics.

Su He Reviewed by Ethan Brooks Also called special category data Last updated Nov 23, 2026 Glossary

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?

CategoryWhat it coversExample fields and values
Racial or ethnic originData revealing race or ethnicity"Ethnicity" form field, "origin" in a survey
Political opinionsData revealing political viewsParty membership, a political donation page tag
Religious or philosophical beliefsData revealing faith or worldview"Religion" field, a prayer-times preference
Trade union membershipData revealing membership"Union member" checkbox
Genetic dataData on inherited or acquired genetic traitsDNA test results
Biometric data for identificationTechnical processing that allows unique identificationFingerprint or face template used to log in
Data concerning healthPhysical or mental health, including care servicesDiagnosis, medication, appointment type, symptom search
Sex life or sexual orientationData 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 leaksExampleWhat to do
URL path and query/results?condition=..., /appointments/oncologyUse 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 termsA visitor types a diagnosisDo not record on-site search on health pages, or hash it away
Event propertiesplan="substance-recovery"Record a category code you control, not the sensitive label
Form fieldsFree-text "reason for contact"Never send field values to analytics; record that the form was submitted
Chat messagesA visitor describes symptoms in chatSet retention, restrict who sees the inbox, do not feed text into analytics
Session replayTyped values on screenKeep 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?

  1. 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.
  2. Using the sensitive label as an event name. An event called cancer_guide_downloaded is itself a data point about the visitor. Use a generic content-category identifier.
  3. Relying on masking of emails and phone numbers. Pattern-based stripping catches addresses and numbers, not the words "my diagnosis is".
  4. 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.
  5. 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.

  1. Map the risk. List pages and forms where visitors could reveal a category: health content, appointment pages, support forms, chat entry points.
  2. Exclude the pages. Use the script's data-exclude attribute 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 call tapcub.track there either.
  3. 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.
  4. 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.
  5. 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.
  6. 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

Was this explanation clear?

We use your answers to fix and expand this page.

Su He

Data Analyst

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

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What counts as sensitive personal data under the GDPR?

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 sex life or sexual orientation. Criminal conviction data is not on the list but is covered separately by Article 10.

Is sensitive personal data the same as PII?

No. PII is a broad idea about identifying a person, such as a name or email address. Sensitive personal data is a legal subset of personal data with extra rules, defined by the eight categories in Article 9. A health fact attached to an anonymous visitor ID can still be personal data.

Can an analytics tool collect sensitive personal data?

It should not need to. Processing is prohibited as a general rule unless an Article 9 condition applies, such as explicit consent. The safer design is to keep these values out: exclude health pages, avoid sensitive event names, never send form field values and review chat and replay settings.

Can data become sensitive through inference?

Yes. The UK ICO says data is special category data if you intend to infer one of these characteristics or treat someone differently based on an inference, regardless of how confident you are that the inference is correct. A page about a medical condition used to build an audience is an example.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics