Privacy·Glossary term

Pseudonymization

Pseudonymization A/B testing Reference guide

Pseudonymization is a concept used in privacy, governance & attribution.

Quick definition: Pseudonymization replaces direct identifiers with a token or pseudonym so records can be used without routinely exposing the original identity, while allowing a controlled link when it is genuinely needed.

What is pseudonymization?

Pseudonymization is a data-handling technique that replaces or separates direct identifiers from working data. An account number might become a random token; a name and email may remain in a restricted identity service while product events contain only an analysis key. The technique reduces unnecessary exposure to identity information and can make routine analytics, debugging, and experimentation safer.

It is not the same as anonymization. Pseudonymous records remain linkable when a mapping table, token service, or additional records can reconnect them to a person. The possibility of re-linking is often the point: a product may need to connect assignment, purchase, and retention outcomes without showing analysts a customer’s name. Because the data remains potentially identifiable, it still needs purpose limits, access controls, retention management, and quality review.

There is no universal technical recipe. A design that is sensible for internal product analytics may be unsuitable for a third-party export, where a stable cross-context token enables unwanted linkage. This page discusses measurement practices rather than legal obligations and is not legal advice.

Pseudonymization boundaries

A pseudonym is a substitute identifier. Tokenization commonly maps a random token to an original value in a protected lookup system. Hashing creates a deterministic representation from input, but predictable values can be guessed or compared; it is not automatically a safe pseudonymization strategy. Encryption protects confidentiality by making data unreadable without a key, yet decrypted data is still the same identifiable data. Anonymization aims to make identification not reasonably possible and has a much higher bar.

TechniqueCan it be linked back?Useful measurement role
Random token with separate vaultYes, through controlled lookupJoin approved outcomes to events
Salted hashPotentially, depending on inputs and secret handlingLimited matching with careful design
EncryptionYes, with decryption keyProtect data in transit or storage
Aggregated releaseIdeally no individual recordRoutine reporting with disclosure checks

The key boundary is access to the reidentification path. If every analyst, vendor, or destination can look up the token, the practical exposure reduction is weak. Separate the identifier vault, use narrowly scoped access, log lookup requests, and avoid sharing stable tokens across unrelated products or purposes. A token becomes a de facto tracking identifier when it is retained and reused broadly.

Measurement and data-quality implications

Analytics often needs continuity across events: a visitor is assigned to a variant, uses a feature, upgrades, and later churns. A pseudonymous analysis key can connect these facts without placing emails, names, or raw customer IDs in every event payload. The key should have a defined scope, lifetime, generation method, and owner. Document whether it represents an account, person, device, browser, or session; ambiguity here causes both privacy and denominator errors.

Preserve provenance. A join should record whether it was deterministic, derived from authentication, imported from a source system, or inferred. Never silently replace two source identities with one pseudonym after a probabilistic match. Stable keys can hide identity mistakes because a dashboard continues to work while one person is split or several people are merged. Monitor duplicate keys, unexpected key rotation, merge rate, missing keys, and the fraction of events joined by each method.

Separate raw identity mapping from analytical facts. For example, an identity service can issue a random account analysis ID; the event collector accepts only that ID; a restricted outcomes job converts billing events to the same ID. Analysts query a table containing variant, time, event, and analysis ID, while the mapping table remains unavailable to routine reporting. This aligns with data minimization and makes it easier to restrict downstream exports.

Experimentation implications

Pseudonymization supports reproducible experiments when the randomization unit is clear. Generate or retrieve the experiment key before treatment, deterministically assign the key to a variant, and retain an immutable assignment record. Outcomes can later be joined by the same key. If a person changes devices or logs in after assignment, preserve the original assignment and record the link method rather than overwriting history.

Key changes can bias results. If a treatment increases login, account creation, or app installation, treated users may gain a durable pseudonym more often than controls. Their later outcomes then appear more completely measured. Report both the intent-to-treat analysis for all assigned eligible units and the rate at which outcomes could be joined by variant. A higher observed revenue total is not enough when linkage coverage changed.

A pseudonym is also not permission to create arbitrary segments. Pre-treatment attributes may define eligibility or planned heterogeneous-effect analyses. Attributes created by the new experience, identity merge, or outcome must not determine who enters the analysis. For further design safeguards, see identity resolution and experiment unit.

Scenario: account-level pricing experiment

A software company tests a new self-service pricing page. The pricing service receives a logged-in account ID and needs to show a stable variant. Its analytics team previously sent the raw account ID and email address into page-view events so it could join trials and upgrades later.

The company introduces an account analysis ID generated by a restricted identity service. The experiment assignment table contains analysis ID, experiment version, assignment time, and variant. Page events contain only the analysis ID and approved context fields. The billing pipeline emits trial and upgrade outcomes using the same analysis ID through a controlled join. Customer support and marketing systems retain their own needed identity records but do not receive the experiment’s detailed behavior stream.

During analysis, the team notices that variant B produces more new account creations. It therefore reports the assigned-account conversion rate as primary, tracks account-creation and outcome-linkage rates as diagnostics, and does not limit the analysis to accounts that upgraded or completed a profile. The pseudonymization design makes this audit possible without exposing raw account information in the experiment dashboard.

Caveats and common mistakes

  • Calling tokens anonymous. A token that can be mapped back or linked across data remains pseudonymous.
  • Using unsalted hashes of common identifiers. They may be reversible by guessing or matchable with other datasets.
  • Reusing one token everywhere. Broad stable identifiers increase cross-product linkage and blast radius.
  • Ignoring token lifecycle. Rotation, deletion, account merges, and consent changes need explicit behavior.
  • Giving routine analysts mapping-table access. That defeats separation of duties.
  • Discarding join-rate diagnostics. Missing or unequal linkage can change experiment and attribution conclusions.

A practical pseudonymization workflow

  1. Define the task. State why continuity is needed and whether aggregate reporting would suffice.
  2. Choose the unit and scope. Specify account, person, device, or session and prevent reuse beyond the intended purpose.
  3. Separate mapping and facts. Keep direct identifiers and lookup capability in a restricted service.
  4. Design joins deliberately. Record source, time, confidence, and permitted destination for every identity link.
  5. Apply lifecycle controls. Handle retention, revocation, deletion, rotation, and merges consistently.
  6. Audit measurement effects. Monitor key availability and outcome linkage by channel, segment, and variant.

FAQ

Is pseudonymized data anonymous?

No. It can often be re-linked through a mapping, a key, or other available information.

Is hashing enough for pseudonymization?

Not by itself. The risk depends on input predictability, secrets, access, reuse, and whether outputs can be matched elsewhere.

Can vendors receive pseudonymous IDs?

Only when the defined purpose requires it and controls prevent unnecessary reuse or linkage. A stable token can still be highly revealing.

Why do experiment keys need provenance?

It lets teams distinguish stable deterministic assignment from later inferred identity links and diagnose differential coverage.

Does pseudonymization improve data quality?

It can improve governance and reproducibility, but it does not fix duplicate, missing, or incorrectly merged identities.

Summary

Pseudonymization replaces direct identifiers with controlled tokens while retaining a limited ability to join records. It reduces routine identity exposure but does not make data anonymous. Use scoped keys, separate lookup services, explicit join provenance, lifecycle controls, and coverage diagnostics. In experiments, pseudonymous assignment keys can support valid analysis only when linkage differences across variants are measured and reported.

Sources

  • NIST Privacy Framework
  • UK Information Commissioner’s Office guidance on anonymisation and pseudonymisation
  • ENISA guidance on pseudonymisation techniques