How is it 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, 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) covers any information relating to an identified or identifiable person, and Recital 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
- 1,200 views a month
- 1,200 email addresses
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.