Quick answer
Privacy-enhancing technologies (PETs) are techniques that let organizations collect, analyze or share data while exposing less personal information, from aggregation, pseudonymization and IP truncation to differential privacy and secure computation. Each trades some accuracy for protection.
Formula: ε-differential privacy: Pr[M(D) ∈ S] ≤ e^ε × Pr[M(D′) ∈ S]; Laplace noise scale b = sensitivity ÷ ε
What are privacy-enhancing technologies (PETs)?
Privacy-enhancing technologies (PETs), also called privacy-preserving technologies, are techniques that let an organization collect, analyze or share data while exposing less personal information than the plain approach would. They range from simple, everyday measures such as aggregation, pseudonymization and IP truncation to mathematical and cryptographic methods such as differential privacy, secure multiparty computation and homomorphic encryption.
Regulators use the term as an umbrella. The UK Information Commissioner's Office guidance on PETs (created June 2023, updated September 2026) describes eight types in detail: differential privacy, synthetic data, homomorphic encryption, zero-knowledge proofs, trusted execution environments, secure multiparty computation, private set intersection and federated learning. None of them is free: each one gives up some accuracy, flexibility or speed in exchange for protection. Choosing a PET means knowing which threat you are protecting against and what that costs your analysis.
Types of PETs and what each one protects
| Technique | What it protects against | Cost to analytics accuracy or flexibility | Typical analytics use |
|---|---|---|---|
| Aggregation with minimum counts | Reading individual rows from a report | Small groups hidden or merged | Daily dashboards, public reports |
| Pseudonymization (keyed hash, HMAC, tokens) | Direct identification from an ID | Low, joins still work; still personal data | Visitor counts without storing names or emails |
| Generalization and truncation (for example IP anonymization) | Pinpointing a person by precise values | Coarser location or age bands | City- or country-level geography |
| k-anonymity | Re-identification by combining quasi-identifiers | Rare combinations suppressed or generalized | Releasing row-level extracts |
| Differential privacy | Learning whether one person is in the data, even by an attacker with side information | Random noise on every answer; small counts become unreliable | Published statistics, browser-level ad measurement |
| Synthetic data | Exposing real records in test or shared datasets | Statistical patterns only approximate; rare cases lost | Testing, demos, model prototyping |
| Data clean rooms | Either party seeing the other's raw customer list | Only approved aggregate queries; limited exploration | Matching ad exposure to sales between two companies |
| Secure multiparty computation, private set intersection | Revealing inputs while computing a joint result | Heavy computation, specialist setup | Overlap counts between two parties' lists |
| Homomorphic encryption | Exposing data to the party doing the computation | Very slow, limited operations | Outsourced computation on sensitive values |
| Federated learning | Centralizing raw data for model training | Harder debugging, model quality varies | On-device models |
| Trusted execution environments | Exposing data to the host operating system or cloud operator | Trust in hardware vendor; side channels | Confidential cloud processing |
For most web and product analytics, the first four rows do most of the work. The cryptographic rows are aimed at sharing between organizations or at high-risk data, and they need specialist engineering.
Differential privacy: the formula
Differential privacy, formalized by Dwork and colleagues and described in Dwork and Roth's The Algorithmic Foundations of Differential Privacy (2014), is a guarantee about a process, not about a dataset. A randomized mechanism M is ε-differentially private if, for any two datasets D and D′ that differ in one person's data, and any set of outputs S:
Pr[M(D) ∈ S] ≤ e^ε × Pr[M(D′) ∈ S]
In words: whether or not any one person is included, the chance of any particular answer changes by at most a factor of e^ε. A smaller ε (epsilon) means stronger privacy and more noise. NIST SP 800-226, Guidelines for Evaluating Differential Privacy Guarantees (March 2025), describes the framework as one that "quantifies privacy loss" and lists the implementation pitfalls ("privacy hazards") to check before trusting a claim.
The simplest mechanism for counts is the Laplace mechanism: add random noise drawn from a Laplace distribution with scale b = Δf ÷ ε, where Δf is the sensitivity, the most one person can change the answer. For a count of distinct visitors, one person changes it by at most 1, so Δf = 1.
Worked example: Laplace noise on a daily visitor count
Sample data: a site reports 1,284 visitors yesterday and wants to publish the daily count with differential privacy. Each visitor is counted once, so the sensitivity is 1.
For Laplace noise with scale b, the chance that the noise exceeds ±t is e^(−t/b), so 95% of the noise falls within ±b × ln(20) ≈ ±3.0b.
| ε | Scale b = 1 ÷ ε | Standard deviation (√2 × b) | 95% of answers within | Relative error on 1,284 | Relative error on a page with 12 visitors |
|---|---|---|---|---|---|
| 1 | 1 | 1.41 | ±3.0 | ±0.23% | ±25% |
| 0.1 | 10 | 14.1 | ±30.0 | ±2.3% | ±250% |
The site-wide count barely moves at either setting. The per-page count of 12 visitors is usable at ε = 1 and meaningless at ε = 0.1. This is the general cost of differential privacy for analytics: large totals survive, small segments drown in noise. And because each published answer spends part of the privacy budget, publishing the same count broken down 50 ways spends far more than publishing the total once.
PETs vs anonymization
Anonymization is an outcome; PETs are the tools that may or may not get you there. The legal line matters in Europe:
| Pseudonymized data | Anonymous data | |
|---|---|---|
| Can be linked back to a person? | Yes, with the key or additional information kept separately | No, by any means reasonably likely to be used |
| Status under GDPR | Still personal data (Article 4(5); Recital 26) | Outside the GDPR (Recital 26) |
| Example | Visitor ID = HMAC(IP + user agent, secret salt) | Daily count of visitors per country, with small groups suppressed |
| Typical PETs used | Keyed hashing, tokenization, encryption | Aggregation, generalization, k-anonymity, differential privacy |
A PET reduces risk; it does not by itself make data anonymous. A hashed email address is pseudonymous, because anyone holding the same list can hash it and match. Sweeney's k-anonymity paper (2002) was motivated by exactly this: records stripped of names could be re-identified by combining ZIP code, birth date and sex.
How to choose a PET for an analytics question
- If the question is a total or a trend (visitors per day, conversions per channel), aggregate and suppress small groups. No identifier needs to be kept.
- If you need to count the same visitor across pages within a period, use a keyed pseudonym (HMAC with a secret that rotates on a schedule). Shorter rotation means less linkage and less ability to see returning visitors.
- If you publish statistics outside the company, consider differential privacy, and decide ε before you see the results.
- If two companies need to match customers, use a clean room or private set intersection instead of exchanging lists.
- If none of the above answers the question without raw identified data, that is a signal to ask whether the question needs answering at all; see privacy-first analytics.
Common mistakes with PETs
- Calling hashed identifiers "anonymous". An unsalted hash of an email or IP is reversible by lookup; under the GDPR it is pseudonymous at best.
- Ignoring small cells. An aggregate report with a row for "1 visitor from a small town using a rare browser" identifies that person.
- Choosing ε after looking at the output. Tuning the noise until the chart looks good defeats the guarantee.
- Treating a PET as a legal basis. PETs reduce risk; they do not replace consent or another legal basis where one is required.
- Forgetting retention. The safest identifier is one that is deleted on schedule.
PETs inside TapCub
TapCub applies the everyday PETs from the top of the table; it does not offer differential privacy, clean rooms or secure computation. If the 1,284-visitor site above uses TapCub, the protections are set in Configuration › Privacy center:
- Pseudonymous counting without cookies. At the default collect tier 2, visitors are told apart with an HMAC of the address and user agent, and the script writes no cookie. At tier 1, the salt rotates daily, no persistent ID is kept, and autocapture and identity operations are dropped, so only anonymous aggregates remain.
- Address truncation, not storage. The IP address is not written on the event. The collector uses it for geography and the visitor HMAC, then discards it; by default the last 2 bytes are truncated before the city lookup, and geography can be set to city, country or none.
- Stripping and retention. Strings that look like email addresses or phone numbers are rewritten to placeholders by default. Default retention is 365 days for events, 90 for autocapture and 730 for profiles, capped by the plan, and a scheduled job deletes expired rows.
- Region rules. The EEA and UK default to tier 2 with consent required; without an analytics consent bit, hits fall to tier 1 and pageviews and custom events are still stored as anonymous aggregates.
These are pseudonymization, generalization, minimization and retention controls. Whether the result counts as anonymous or as personal data in your jurisdiction depends on your configuration and local law.
Sources
- ICO: Privacy-enhancing technologies (PETs) guidance
- NIST SP 800-226: Guidelines for Evaluating Differential Privacy Guarantees (March 2025)
- Dwork, C. and Roth, A. (2014). The Algorithmic Foundations of Differential Privacy
- Sweeney, L. (2002). k-Anonymity: A Model for Protecting Privacy
- Regulation (EU) 2016/679 (GDPR), Article 4(5) and Recital 26
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

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