# Personally identifiable information

Also called: PII, personal information, personal data, PII examples

Personally identifiable information (PII) is any data that can be used to identify a specific person, either on its own or when combined with other information. A name, email address or passport number identifies someone directly; a postcode, birth date or IP address can identify them once it is linked with other data.

## How it is calculated

There is no score to compute: you decide case by case whether a piece of data can single out a person. NIST, in [SP 800-122](https://csrc.nist.gov/glossary/term/personally_identifiable_information), defines PII as any data that can be used to distinguish or trace an individual's identity. Ask two questions. Does this value point to one person by itself (a direct identifier)? Could it point to one person when joined with something else you hold or could easily get (an indirect identifier)?

PII is mainly a US term, and US laws define it in different ways. The EU's GDPR uses **personal data** instead, which is wider: [Article 4(1)](https://gdpr-info.eu/art-4-gdpr/) covers any information relating to an identified or identifiable person, and [Recital 30](https://gdpr-info.eu/recitals/no-30/) names IP addresses and cookie identifiers as online identifiers. Data that is merely hashed or pseudonymised is still personal data under the GDPR when it can be linked back to someone.

Common examples: direct identifiers are full name, email address, phone number, home address, government id numbers, account numbers and photos of a face. Indirect identifiers are IP address, device ids, cookie ids, precise location, date of birth, postcode, job title and employer. Sensitive categories such as health, religion or biometrics carry extra rules in most laws.

## Example

A password reset page has URLs like `/reset?token=8f2c&email=jo@example.com` and gets 1,200 views a month. An analytics tool that stores full URLs ends up holding 1,200 email addresses and live reset tokens a month, in a system nobody thought of as holding PII. Cutting the query string before the request leaves the browser stores `/reset` 1,200 times and no personal data at all.

## Common mistakes

- Treating a hash of an email address as anonymous. The same address always gives the same hash, so anyone holding the list can match it. It is pseudonymous, and still personal data under the GDPR.
- Assuming IP addresses are not PII. Under the GDPR they are online identifiers, named as such in Recital 30.
- Letting PII leak through URLs, page titles, custom event properties or error messages, which analytics stores as sent.
- Thinking a single field is safe because it identifies nobody alone. Postcode, birth date and gender together can narrow a group to one person.

## How CrispStats shows it

CrispStats never stores IP addresses or raw user agents: they are used at the edge to compute a daily visitor hash, a device type and an approximate location, then discarded. The script cuts query strings to UTM parameters and a short allowlist before sending, drops URL fragments, and rounds location to about 11 km. Payment emails from webhooks are never stored: only a SHA-256 hash and a masked form are kept, which is pseudonymous data, not anonymous. Page paths, custom event properties, `identify()` user ids and error messages are stored as you send them, so keep PII out of them unless you mean to collect it.

## Related terms

- [IP anonymization](/glossary/ip-anonymization)
- [GDPR](/glossary/gdpr)
- [CCPA](/glossary/ccpa)
- [Browser fingerprinting](/glossary/browser-fingerprinting)
- [Visitor hash](/glossary/visitor-hash)
- [User agent](/glossary/user-agent)
- [Data retention](/glossary/data-retention)
