TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What are privacy-enhancing technologies (PETs)? Types and analytics cost

Privacy-enhancing technologies let you analyze or share data while exposing less personal information. Each type mapped to the threat it addresses and its cost to analytics accuracy, with a differential-privacy example on a daily visitor count.

Su He Reviewed by Ethan Brooks Also called PETs Last updated Nov 29, 2026 Glossary

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

TechniqueWhat it protects againstCost to analytics accuracy or flexibilityTypical analytics use
Aggregation with minimum countsReading individual rows from a reportSmall groups hidden or mergedDaily dashboards, public reports
Pseudonymization (keyed hash, HMAC, tokens)Direct identification from an IDLow, joins still work; still personal dataVisitor counts without storing names or emails
Generalization and truncation (for example IP anonymization)Pinpointing a person by precise valuesCoarser location or age bandsCity- or country-level geography
k-anonymityRe-identification by combining quasi-identifiersRare combinations suppressed or generalizedReleasing row-level extracts
Differential privacyLearning whether one person is in the data, even by an attacker with side informationRandom noise on every answer; small counts become unreliablePublished statistics, browser-level ad measurement
Synthetic dataExposing real records in test or shared datasetsStatistical patterns only approximate; rare cases lostTesting, demos, model prototyping
Data clean roomsEither party seeing the other's raw customer listOnly approved aggregate queries; limited explorationMatching ad exposure to sales between two companies
Secure multiparty computation, private set intersectionRevealing inputs while computing a joint resultHeavy computation, specialist setupOverlap counts between two parties' lists
Homomorphic encryptionExposing data to the party doing the computationVery slow, limited operationsOutsourced computation on sensitive values
Federated learningCentralizing raw data for model trainingHarder debugging, model quality variesOn-device models
Trusted execution environmentsExposing data to the host operating system or cloud operatorTrust in hardware vendor; side channelsConfidential 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 withinRelative error on 1,284Relative error on a page with 12 visitors
111.41±3.0±0.23%±25%
0.11014.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 dataAnonymous data
Can be linked back to a person?Yes, with the key or additional information kept separatelyNo, by any means reasonably likely to be used
Status under GDPRStill personal data (Article 4(5); Recital 26)Outside the GDPR (Recital 26)
ExampleVisitor ID = HMAC(IP + user agent, secret salt)Daily count of visitors per country, with small groups suppressed
Typical PETs usedKeyed hashing, tokenization, encryptionAggregation, 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

  1. 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.
  2. 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.
  3. If you publish statistics outside the company, consider differential privacy, and decide ε before you see the results.
  4. If two companies need to match customers, use a clean room or private set intersection instead of exchanging lists.
  5. 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:

  1. 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.
  2. 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.
  3. 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.
  4. 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

Was this explanation clear?

We use your answers to fix and expand this page.

Su He

Data Analyst

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

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What are examples of privacy-enhancing technologies?

Everyday examples are aggregation with minimum counts, pseudonymization with keyed hashes, IP truncation and k-anonymity. Advanced ones, listed by the UK ICO, are differential privacy, synthetic data, homomorphic encryption, zero-knowledge proofs, trusted execution environments, secure multiparty computation, private set intersection and federated learning.

Do PETs make data anonymous?

Not automatically. Pseudonymization with a key or hash still leaves personal data under the GDPR, because the data can be linked back with additional information. Aggregation, generalization or differential privacy can reach anonymity if no one can reasonably re-identify a person, which depends on the details.

How does differential privacy affect analytics accuracy?

It adds random noise whose size depends on epsilon, not on the count. With epsilon 1, a count is typically within about ±3, which is negligible for 1,284 visitors but ±25% for a page with 12. Large totals survive; small segments become unreliable.

Which PETs are used in web analytics?

Mostly the simple ones: cookie-free pseudonymous IDs, IP truncation before geolocation, aggregate-only reporting, stripping of emails and phone numbers, and short retention. Differential privacy and clean rooms are used for published statistics and for matching data between companies.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics