Cookieless Measurement Patterns

Cookieless Measurement Patterns

What server-side tagging preserves under tracking prevention — server-set first-party IDs versus modeled measurement, with the honest accuracy and coverage trade-off.

Browser tracking prevention restricts third-party storage and, in WebKit, the lifetime of storage written by client-side script, among other surfaces — not first-party measurement as a category. Server-set first-party identifiers can extend durability by avoiding WebKit's client-script lifespan caps, but they relocate where the identifier is set rather than exempting you from tracking prevention: WebKit caps cookies from endpoints it classifies as third-party CNAME or IP-address cloaking to 7 days as well (as of November 2026). The real choice is between a deterministic first-party ID (accurate where it applies, covering only the visitors and contexts where a durable id is present) and probabilistic or modeled measurement (covers more, but estimated). Every pattern trades something, and cookieless means neither anonymous nor compliant by default.

What ITP and ETP actually restrict

The phrase "cookieless" invites a misreading, so start with what is actually restricted. Intelligent Tracking Prevention (WebKit) and Enhanced Tracking Protection (Firefox) do not restrict the same things. The surfaces they restrict include third-party storage, which both restrict, and the lifetime of cookies and other storage written by client-side script, which WebKit limits. WebKit's documentation lists other measures as well, such as a 24-hour expiry cap on cookies created in JavaScript on a landing page reached through link decoration that it detects as cross-site tracking, and a 7-day expiry cap on cookies set in responses it classifies as third-party CNAME or IP-address cloaking (as of November 2026). Neither targets first-party measurement as a category, and reading them as "you may no longer measure" is the wrong model.

Concretely, as of November 2026, WebKit's documentation states that it deletes all cookies created in JavaScript and all other script-writeable storage after 7 days of no user interaction with the website, and that the first-party domain of home screen web applications is exempt from this 7-day cap; an earlier WebKit post from February 21, 2019 described the cookie rule as a 7-day expiry cap on persistent cookies created through document.cookie. WebKit also blocks third-party cookies by default. Firefox's Enhanced Tracking Protection blocks known cross-site tracking cookies and, through Total Cookie Protection, gives each website its own cookie jar so a third party cannot link activity across sites (Mozilla, updated August 2024). So a cookie written by document.cookie can have its lifetime truncated in Safari, and a cookie or storage entry belonging to a cross-site domain is partitioned per top-level site or simply unavailable. Those are the restricted surfaces this article works with.

Name what is restricted precisely, because the behavior changes and the precise version is what your design depends on. The authority is the engine vendor's own documentation — for WebKit, the Tracking Prevention in WebKit documentation (as of November 2026) — and it is worth citing with an access date rather than from memory, because what was true two releases ago may not be true now.

The boundary, stated plainly: the restriction is on where and how long an identifier persists, not on whether you may measure. That distinction is the entire opening for the patterns that follow. Tracking prevention did not make measurement impossible, and it does not itself decide what the law allows; the cheap, durable, cross-site identifier became unreliable — blocked or partitioned by default in Safari and Firefox — and everything here is a response to that one loss.

How server-set first-party IDs extend durability

The first response is to set the identifier somewhere the caps do not reach. An identifier written by a server response on a first-party origin avoids WebKit's client-script lifespan cap, because that cap applies to cookies set by script, not to cookies set by a server's response header. In the ordinary case, the id outlives what a document.cookie write would have gotten.

Be precise about what that does and does not do. It relocates where the ID is set — from client script to server response — and that relocation is the whole durability gain. It does not exempt the site from tracking prevention. WebKit caps the expiry of cookies set in responses it classifies as third-party CNAME cloaking or third-party IP address cloaking to 7 days (as of November 2026), so a collection subdomain that is a CNAME to a vendor's hostname gets a 7-day expiry cap on the cookies set in its responses. The exception in WebKit's table is matching cloaking: when the page's own host (the top frame host) resolves through the same CNAME, the table lists no cap. The mechanics of standing up that first-party collection — the subdomain, how the endpoint is served, the Set-Cookie attributes that shape the cookie — are covered in another article on this topic; here the relevant fact is only that a server-set first-party ID is more durable than a script-set one when the endpoint is not classified as cloaking.

And it is durability extended, not durability made permanent. Where it still falls short is the part worth saying out loud: cross-device identity, cross-browser identity, and identity after a user clears storage all remain unsolved. A server-set first-party ID is one identifier, on one browser, until it is cleared. The same visitor on their phone is a different id; the same visitor after a storage reset is a different id. Durability bought you a longer-lived identifier, not a complete one.

Deterministic first-party ID versus probabilistic and modeled measurement

This is the real fork. A deterministic approach uses a known, server-set first-party identifier tied to an observed event — the id was present, the event happened, the two are joined as fact. It answers "what did this identified visitor do?"

A probabilistic or modeled approach fills the gap an identifier no longer covers. When there is no durable id — a cleared visitor, a new device, a partitioned context — inference estimates the outcome from aggregate or modeled signals. It answers a different question: "given everything we can observe in aggregate, what most likely happened?" Observed identity versus estimated outcome are not two grades of the same measurement; they are answers to different questions.

The trade-off is best held as a comparison:

DimensionDeterministic first-party IDProbabilistic / modeled
DurabilityServer-set and usually longer-lived (unless cloaking-capped), but single-browser and lost on clearNot tied to a stored id; survives where no id exists
AccuracyHigh where the id applies — it is an observed joinEstimated; an inference with error, not a fact
CoveragePartial — only where a durable id is presentBroader — fills the gaps the id cannot reach
Privacy exposureA stored identifier that identifiesInference from signals; different exposure profile, not automatically lower
Implementation costOwning collection and the id lifecycleModeling, validation, and ongoing tuning

Modeling is a documented vendor and industry reality, and it belongs in the picture described neutrally — with the privacy caveat that inference is still processing of behavioral signals — but never as a recommended default. It is a tool for the coverage gap, not a replacement for measuring what you can observe. The gap itself comes from browser-enforced limits, which are a different approach from an earlier voluntary signal: Do Not Track asked sites to honor a request header, and the W3C ended work on it in 2019, publishing it as a Working Group Note. The working group's stated reason was that, since the specification's last publication as a Candidate Recommendation in 2017, there had not been sufficient deployment of its extensions as defined to justify further advancement, nor indications of planned support among user agents, third parties, and the ecosystem at large.

Stitching sessions without third-party identifiers

Below identity sits the practical task of joining events into a session. Without a cross-site identifier, you join on a first-party one: events carrying the same owned identifier are stitched into a session server-side, where the join happens on data you control rather than on a third-party cookie you can no longer count on.

Where the owned identifier is present, the server-side join is clean. Where it is not, there is a gap — and the honest move is to treat the gap as a gap, not to paper over it. Stitching breaks in specific, nameable places: an identifier reset starts a new session that cannot be joined to the old one; a new device has no shared id at all; cleared storage severs the thread mid-journey. Each leaves an unjoinable seam.

The discipline is to be explicit that those seams exist. A session count built on first-party stitching is accurate for the events it could join and silent about the ones it could not, and reporting it as if it were complete is the quiet way measurement starts lying. The gaps are not a bug to be hidden; they are the shape of measurement after the third-party identifier, and naming them is what keeps the numbers trustworthy.

The honest trade-off — accuracy, coverage, and no perfect identity

Put the two halves together and the shape is clear. Deterministic measurement is accurate where it applies but covers only the visitors and contexts where a durable id is present. Modeled measurement covers more but is estimated. You can have precision on a narrower population or broad estimation across a wider one — and the engineering question is which mix your reporting can honestly stand behind, not which one restores the old completeness.

Privacy exposure differs between the two and does not collapse to "modeled is safer." A stored identifier is a piece of retained data that identifies. Inference from signals is processing that estimates. They carry different exposures and different obligations; neither is automatically the privacy-preserving choice, and treating modeling as a privacy feature is a mistake.

The conclusion that matters for design is the one nobody wants to hear: there is no configuration that restores pre-restriction identity. Every pattern trades something — durability for coverage, accuracy for reach, retained identifiers for inference. And the last line is the one to keep visible through all of it: cookieless does not mean anonymous, and it does not mean compliant by default. A first-party id still identifies; a modeled estimate still rests on behavioral signals; and lawful basis is decided by law and policy, not by how the browser treats first-party versus third-party context, so it is a separate question that no measurement pattern answers on its own.

Project Inquiry