Privacy
PII examples: what counts as personal data in analytics, by regulator
PII examples from NIST, the GDPR and the CCPA side by side: names, emails, IP addresses, cookie ids and more, and where each one leaks into analytics.
The CrispStats team · · 10 min read
In short
PII examples include direct identifiers such as a name, email address, phone number, passport or social security number, and indirect ones such as an IP address, a cookie id, a device id or precise location that can single a person out once linked. The US standard (NIST SP 800-122) and California’s CCPA list IP addresses and online identifiers, and the European Commission names IP addresses and cookie ids as personal data under the GDPR. In analytics, PII most often leaks through URLs, page titles, form fields and event properties, which is where to check first.
“Do we collect PII?” is a question every analytics setup gets asked eventually, by a customer, an auditor or a privacy notice you have to write. The honest answer depends on whose definition you use. The US tends to say PII and lists types of data. Europe says personal data and asks whether a person can be identified. The lists overlap, but not completely, and the gaps are exactly the identifiers analytics tools rely on.
Below is a table built from the regulators’ own texts, then the places PII turns up in analytics data without anyone meaning to send it, with a worked example.
What is PII?
Personally identifiable information is information that can identify a person on its own or when combined with other information. The standard US definition comes from NIST SP 800-122 (2010): any information that can be used to distinguish or trace an individual’s identity, such as name, social security number, date and place of birth or biometric records, plus any other information that is linked or linkable to an individual.
The GDPR uses a different term, personal data, and a wider test. Article 4(1) covers any information relating to an identified or identifiable person, and names “an online identifier” among the things that can identify someone. California’s CCPA sits in between: personal information is anything that identifies, relates to or could reasonably be linked with a consumer or a household, and the statute lists categories from real names to browsing history and inferences.
The practical difference: under NIST’s framing, an IP address is PII when it consistently links to a person or a small group. Under the GDPR and the CCPA it is named outright. For analytics, that means the European and Californian answers are usually the stricter ones.
PII examples: a table from the regulators’ definitions
Each cell says what the named source states. “Not listed” means the source does not name it, not that it is safe.
The European column comes from the Commission’s examples of personal data, which name a home address, an IP address, a cookie id and the advertising identifier of a phone, and list a company registration number and irreversibly anonymised data as examples of data that is not personal. The UK ICO’s guide says online identifiers include IP addresses and cookie identifiers which may be personal data, that information about companies is not, and that truly anonymous information is outside the UK GDPR. The NIST column is from section 2.2 of SP 800-122, and the California column from the statute’s lists of personal information and of unique identifiers, which include cookies, beacons, pixel tags and IP addresses. The California Attorney General’s CCPA overview gives a plain-language version.
Is an IP address PII?
In Europe, generally yes for a website operator. In the 2016 Breyer judgment, the Court of Justice of the EU held that a dynamic IP address can be personal data for a website operator that has legal means to identify the visitor with additional data held by the internet provider. The Commission’s examples now list IP addresses without qualification. NIST lists IP and MAC addresses as PII where they consistently link to a person or a small group, and the CCPA names IP addresses in both its identifier lists.
This is why the IP address matters more than any other row in the table for analytics: every request carries one. A tool can avoid storing it, or truncate it before storage, but cannot avoid receiving it. Whether collecting it at all needs consent is a separate question, covered country by country in analytics and consent in Europe.
Is hashed or pseudonymised data still PII?
Usually, for the party that can reverse or link it. The ICO says pseudonymised data can reduce risk but is still personal data. A hashed email address is the standard example: anyone holding the same email can compute the same hash and match it, which is exactly why ad platforms ask for hashed emails.
The Court of Justice added a nuance in September 2025 in EDPS v SRB (case C-413/23 P): pseudonymised data may not be personal data for a recipient that has no realistic means to re-identify the people behind it, while it remains personal data for the party that holds the key. Commentators disagree on how far that goes, and it does not turn a hashed email into anonymous data for the company that hashed it.
Anonymous data is different in kind: aggregate counts such as “412 visitors from Portugal yesterday” that cannot be traced back to anyone. The Commission and the CCPA both place such data outside their definitions, provided the anonymisation cannot be reversed.
Where does PII leak into analytics?
Most analytics PII is not collected on purpose. Google’s own policy page on PII in Analytics forbids sending it and lists where it usually comes from. The same places apply to every tool:
- Page URLs and query strings. Sign-up, password reset and checkout flows often put an email or a name in the URL, and every page view records the URL.
- Page titles. “Welcome back, Ana” in the title is sent with every view of that page.
- Campaign parameters. Email tools can add a subscriber’s address to UTM parameters or a custom query parameter for tracking clicks.
- Site search terms. People type names, emails and order numbers into search boxes.
- Form and event properties. A custom event that sends a field value instead of a field name.
- User ids. An internal id is pseudonymous, but your database links it straight back to a person.
- Precise location. Google defines fine-grained location as any area smaller than one square mile and warns that a UK postcode can map to a single residence.
Worked example: an email address in an order link
A shop sends order confirmation emails with a link back to the site. The link looks like this:
https://shop.example/orders/1042?email=ana%40example.com&utm_source=newsletter&utm_medium=emailWhen Ana clicks it, the page view records the full URL. Her email address is now in the analytics database, tied to order 1042, the time of the visit and, in a cookie-based tool, a client id that links all her other visits. Across 3,000 confirmation emails a month with a 20% click rate, that is about 600 email addresses a month in a system that was never meant to hold them, and they stay for as long as the tool’s data retention period. The 20% is an assumption for the example; use your own click rate.
The fix happens before the data is sent, because removing it afterwards is much harder:
- Stop putting personal data in URLs. Use an opaque token that your server resolves, or keep the data in the request body.
- Strip query parameters you do not need before the page view is recorded, or configure the tool to drop them. Keep an allowlist (UTM tags, pagination) rather than a blocklist.
- Check page titles on account, order and profile pages.
- Review custom events: send
form_submittedwith the form’s name, not the values typed into it. - Search the data you already hold for an
@in URLs and event properties. If you find any, delete it using the tool’s deletion features and fix the source.
Which PII is especially sensitive?
The GDPR’s Article 9 sets apart special categories: health, racial or ethnic origin, political opinions, religious beliefs, trade union membership, genetic and biometric data used to identify someone, and sex life or sexual orientation. Processing them needs an extra legal condition. The CCPA has a similar list of sensitive personal information. Analytics can touch these by accident: a page path such as /clinic/hiv-testing/booking-confirmed tied to a visitor id says something about that person’s health. Health, faith and political sites should look at their URL structure with that in mind.
What CrispStats stores, and what it does not
CrispStats is built to keep the IP address and the user agent out of storage. Both are read at the edge to compute a daily rotating visitor hash and a device type, then discarded. No cookie id exists, because the script sets no cookies, and the hash cannot be linked across days or sites. In revenue attribution, the customer’s email is never stored. That removes the rows of the table that every request would otherwise add.
The URL leak in the worked example is handled in the browser: the script cuts the query string before anything leaves the page, keeping only UTM parameters, a few referral parameters such as ref, ad click ids with their value replaced by 1, and any parameters you choose to keep. Ana’s link would be sent as /orders/1042?utm_source=newsletter&utm_medium=email.
It does not remove the rows you send yourself. Anything in the URL path is stored as it is, so an email or a name in the path needs the page excluded or the URL changed. Custom event properties are stored as your code sends them. If you call identify with your own user id after login, that id and any traits are kept with the visitor’s events and link back to a person in your database, so they are personal data in your hands. The data collected page lists every field, and the privacy policy covers storage and retention.