Guide

Cookieless analytics and tracking, explained

How analytics and tracking work with no identifier stored on the device: the three approaches and what each can count, where fingerprinting crosses the line, and where Google Consent Mode, server-side tagging and third-party cookies fit.

What cookieless means

Cookieless analytics (or cookieless tracking) is analytics that measures your traffic without storing a persistent identifier on the visitor’s device: no cookie, no localStorage entry, nothing that survives the page. The term is slightly misleading: the cookie was never the point. What matters legally and ethically is whether something on the device can be read back later to recognise the same person, and a localStorage key does that as well as a cookie does. In advertising the phrase also covers Google Consent Mode, server-side tagging and measurement without third-party cookies, which cookieless tracking beyond analytics covers below.

That distinction is why Article 5(3) of the ePrivacy Directive (the rule that produces consent banners) is written about storing or accessing information on a user’s device, not about cookies specifically. Remove the storage and you remove half of that trigger. The other half is access: the EDPB’s Guidelines 2/2023 count JavaScript that tells the browser to send information as access (paragraph 33), and add that this alone does not mean consent is needed (paragraph 56). You do not remove GDPR either, which governs what you then do with the data. ePrivacy and GDPR are separate questions and conflating them is the most common mistake in this area; the GDPR compliance guide works through both.

How cookieless tracking works: three approaches

Every cookieless tool takes one of three approaches, and they are not equivalent. Vendors tend to use the same word for all three.

1. No identifier at all

The simplest option: record the event, attach no identity, and report only aggregate counts. You get pageviews, top pages, referrers and totals. You cannot get unique visitors, sessions, funnels or retention, because every one of those requires knowing that two events came from the same person. This is honest and cheap, and it is why the most privacy-aggressive tools report so few metrics.

2. A rotating, derived identifier

The middle path, and the one most privacy-focused analytics tools use. The server derives an identifier from data the HTTP request already carries (typically the IP address and User-Agent) by running it through a keyed hash with a secret that rotates on a schedule, usually daily. Within the day, the same visitor produces the same identifier, so sessions and unique counts work. Once the secret is rotated and destroyed, the identifiers become unlinkable, and yesterday’s visitor cannot be matched to today’s.

The rotation is doing the real work here. A plain hash of an IP address is not anonymisation: there are only about four billion IPv4 addresses, so anyone holding the hashes can compute the hash of every possible address and match them back in minutes. A secret salt defeats that, and rotating and deleting the salt is what makes the guarantee hold over time rather than only until the secret leaks.

3. Fingerprinting

The one to be careful about. A fingerprint combines device characteristics (screen resolution, installed fonts, canvas rendering quirks, hardware concurrency) into an identifier engineered to be stable, so the same device is recognisable weeks or months later. It stores nothing on the device, so it is technically cookieless, and it is routinely sold under that label.

Rotation is the whole distinction. A rotating identifier is designed to stop working; a fingerprint is designed not to. Everything else about them is similar, which is exactly why the word “cookieless” cannot be trusted on its own.

Regulators settled this a while ago. The Article 29 Working Party’s Opinion 9/2014 (November 2014) held that fingerprinting falls inside the scope of the same ePrivacy rule that governs cookies, and the EDPB’s Guidelines 2/2023 (version 2, adopted 7 October 2024) restated it: Article 5(3) is not about cookies specifically, and reaches tracking pixels, tracking links and device fingerprinting alike. Adopting a fingerprinting tool to escape a consent banner therefore tends to land you in a worse position than the cookie you were avoiding, not a better one. Cookieless tracking vs fingerprinting works through the test that separates the two and what the guidelines say about IP addresses.

The three approaches compared

What each approach stores, what it can count, and where it stands under ePrivacy Article 5(3). Tools as their vendors describe them, checked November 21, 2026; the last row links the sources.
Compared onNo identifierRotating derived identifierFingerprinting
Stored on the deviceNothingNothingNothing
What identifies a visitorNothingA keyed hash of IP and User-Agent under a salt that rotates, usually dailyDevice traits (screen, fonts, canvas, hardware) combined to stay stable
Page viewsYesYesYes
SessionsNoYesYes
Unique visitors within a dayNoYesYes
Funnels across daysNoNo: each rotation makes a returning visitor newYes, while the fingerprint holds
RetentionNoNo: it reads about zero by constructionYes, while the fingerprint holds
ePrivacy Article 5(3)Applies with nothing stored: EDPB 2/2023 counts a script that tells the browser to send information as access (paragraph 33). Consent turns on whether an exemption covers it (paragraph 56).As for no identifier, and the IP used as a hash input counts too where it originates from the device (paragraph 55).Applies, and the identifier exists to recognise the device: Opinion 9/2014 placed fingerprinting under Article 5(3), and EDPB 2/2023 restates it.
Tools that use itCloudflare Web Analytics, which says it keeps no client-side state and doesn’t fingerprint visitors by IP, User-Agent or any other dataPug, Plausible, Fathom, PureMetrix and PostHog’s opt-in cookieless mode, all daily; Umami, monthly unless you change itNo tool in the cookieless analytics tools roundup is sold as fingerprinting
SourceCloudflare Web AnalyticsHow Pug does it, Plausible data policy, Fathom data page, How PureMetrix counts visitors, PostHog cookieless tracking tutorial, Umami environment variablesCookieless analytics tools roundup

What cookieless measurement costs you

This is the part the category’s marketing pages skip, and it is the reason cookieless has historically belonged to web analytics rather than product analytics. A daily-rotating identifier is a new person every midnight. If you feed those identifiers into metrics that count people, the numbers do not degrade gracefully. They break in specific, predictable ways:

  • Unique users inflate. A visitor who comes back on five days is counted as five people. The longer the reporting window, the worse the error.
  • Per-user averages deflate. The denominator is inflated by the same factor, so “events per user” drifts toward one.
  • Funnels leak at every day boundary. A signup flow that spans a night sees the person who came back to finish as a stranger who started at step two.
  • Retention collapses to zero. Retention cohorts ask whether the same person returned on a later day. With rotating identifiers, the answer is structurally no: the metric returns approximately zero regardless of how good your product is.
  • User flows fragment. Path analysis stitches one person’s journey; rotating identifiers cut it nightly.

What does not break matters as much. Total event counts are fine: a consent-declining visitor’s pageview is still a pageview, and excluding it would under-count your traffic. Session metrics are fine too, because a session is stitched from activity within a short window and never needs to know who the person is across days.

So the correct handling is not better hashing. It is to keep cookieless traffic in the metrics that count events and sessions and out of the metrics that count people, and to be explicit about which is which, so nobody reads an inflated unique-user chart as growth. What cookieless tracking does to funnels and retention works through each metric and the split in full.

For the analytics itself, often yes: with nothing stored on the device, the storage half of the ePrivacy rule has nothing to attach to, and the access the script makes is where an exemption comes in, such as the CNIL’s audience-measurement exemption in France. That is a real and meaningful reduction in obligation, and it is why cookieless tools can report on close to 100% of traffic while consent-gated tools see only the share of visitors who click accept.

Two caveats worth stating plainly. First, GDPR still applies to the processing: an IP address is generally personal data, so using one as a hash input is processing that needs a lawful basis, transparency and minimisation, even when the input is never stored. Second, a banner covers your whole site rather than one vendor: embedded video, ad pixels, chat widgets and A/B testing tools routinely set their own identifiers, and any one of them puts the banner back. Requirements vary by jurisdiction; this is general guidance, not legal advice.

Cookieless tracking beyond analytics

Marketers use the phrase for three more things: Google Consent Mode, server-side tagging, and measurement in browsers that block third-party cookies. Each fact below links to Google’s, WebKit’s or Mozilla’s own page, checked November 21, 2026.

Consent Mode passes each visitor’s consent choice to Google’s tags. In the basic setup the tags don’t load until the visitor answers the banner. In the advanced setup they load at once, and while consent is denied they “send measurements without cookies”: pings that can carry a timestamp, the User-Agent, the referrer, the consent state, a random number generated on each page load, and whether the visit came from an ad click (Google’s consent mode overview). Version 2 adds two parameters, ad_user_data and ad_personalization, to ad_storage and analytics_storage (Google’s consent mode setup guide), and to keep its measurement, ad personalization and remarketing features working for users in the EEA, Google requires you to collect their consent and share those signals with it (Google’s EEA consent mode update).

Google fills the gap with modeling. GA4’s behavioral modeling estimates the visitors who declined analytics cookies from similar visitors who accepted, once a property sends at least 1,000 events a day with analytics_storage denied for 7 days and has at least 1,000 daily users with it granted on 7 of the previous 28 days, and then only when Google has high confidence in the model (GA4 behavioral modeling for consent mode). So Consent Mode is cookieless only for visitors who decline, and only in the advanced setup: a visitor who accepts gets GA4’s _ga cookie, which lasts two years by default (GA4 cookie usage).

Server-side tagging

Server-side tagging, as in Google Tag Manager’s server container, moves processing from the browser to a server you control: the data flows from the visitor to your server container, which typically runs in a first-party context with your site (Google’s server-side tagging fundamentals). It is not cookieless on its own. Google lists that first-party context as a benefit because cookies set through it can carry the HttpOnly flag, “making them more durable and more secure”, and the GA4 client in the server container can manage its own client-ID cookie there (Google’s GA4 server-side setup). A cookie set from your server is still stored on the device, which is what Article 5(3) covers, so the consent question stays where it was.

Third-party cookies in Chrome, Safari and Firefox

Chrome never phased them out. In December 2023 Google said it would restrict third-party cookies for 1% of Chrome users from January 4, 2024 and phase them out for everyone in the second half of 2024 (Google’s December 2023 Tracking Protection post). In July 2024 it changed plan: instead of deprecating them, Chrome would let people make a choice that applies across their browsing (A new path for Privacy Sandbox on the web). In April 2025 it said it would not roll out a standalone prompt either, and would keep the third-party cookie choice Chrome already offers, with Incognito blocking them by default (Next steps for Privacy Sandbox); the choice sits in Chrome’s privacy settings (Chrome’s cookie settings help). In October 2025 Google retired most of Privacy Sandbox, including Topics, Protected Audience, Attribution Reporting, IP Protection and Related Website Sets, and kept CHIPS, FedCM and Private State Tokens (Update on plans for Privacy Sandbox technologies). The Privacy Sandbox feature status page, updated November 18, 2026, lists Topics, Protected Audience and Attribution Reporting as removed from Chrome.

Safari has blocked third-party cookies by default since Safari 13.1 on macOS and iOS 13.4 in March 2020. Its Intelligent Tracking Prevention also caps cookies set from script at seven days, and deletes a site’s script-writable storage, localStorage included, after seven days of Safari use without interaction on the site (WebKit’s full third-party cookie blocking post). Firefox has turned on Total Cookie Protection for every desktop user since June 2022: each website gets its own cookie jar, so a tracker’s cookie on one site is kept apart from its cookie on the next (Mozilla’s Total Cookie Protection announcement).

Which of these changes what analytics can count

  • Third-party cookies: no change. An analytics tool on your own domain reads its own first-party cookie or nothing, so where third-party cookies stand changes ad targeting and cross-site attribution, not your page views, funnels or retention.
  • Safari’s seven-day cap: a change for tools that store an identifier from script. A visitor who stays away longer comes back with a new cookie or localStorage ID, and a tool built on one counts a new visitor. A cookieless tool stores nothing, so it loses nothing here.
  • Consent Mode: a change inside Google’s reports. Declined visitors become modeled figures rather than counted ones, and only on properties above the thresholds. Google’s list of what a ping can carry has no visitor ID, only a random number per page load, so like the no-identifier approach it counts page views and not people.
  • Server-side tagging: a change only through the cookie. It moves where data is processed; GA4 still recognises a visitor by a client-ID cookie, which Google says is more durable when set from your server.

How Pug does it

Pug’s Web SDK defaults to cookieless. It has three consent states and the default is the middle one: events flow, no identifier is stored on the device, and identify() is disabled, so an install that never mentions consent still stores no identifier before it has a basis to. Cookieless mode belongs to the Web SDK: the Android, iOS and Flutter SDKs have none and start with consent granted.

// the default, no configuration needed to stay cookieless
init(projectId, { apiKey })

// once the user agrees, via clear affirmative action:
optInTracking()

Server-side, a visitor with no stored identity is given an ephemeral one derived from the request: a keyed hash (HMAC-SHA256) of the project, IP address and User-Agent, under a salt that changes every day. The IP and User-Agent are hash inputs only. They are never stored on the event and never returned by the API. The day’s salt is held under a TTL and deleted when it expires, and that deletion is the guarantee: once it is gone, the identifiers minted with it can no longer be linked to any IP or User-Agent, or to each other, by anyone. The construction, and why the salt is deleted rather than rotated and kept, is written up in cookieless identity, built on a self-deleting salt. Sessions are stitched server-side on a 30-minute inactivity window, so session metrics stay correct without any device storage.

These identifiers carry a reserved cookieless- prefix so every part of the system can recognise them from the value alone. That is what makes the measurement rule above enforceable rather than aspirational: they are excluded by default from unique users, per-user averages, funnels, retention, user flows and user-level top-K, and always included in total event counts and every session metric. The query API carries an include_cookieless flag for the cases where you deliberately want them back in. In the events table and live feed they render as cookieless with no profile link, because there is no profile to link to: an ephemeral identifier is not a person, and the interface should not imply otherwise.

When a visitor does consent, identify() merges their anonymous history into a real profile, and identity resolution takes over from there. Cookieless is the floor, not the ceiling.

Choosing an approach

  • Ask what the identifier is derived from, and how often it rotates. “Cookieless” with no rotation is fingerprinting with better branding.
  • Ask whether the salt is deleted or merely changed. A retained history of old salts re-links everything it was supposed to separate.
  • Ask whether IP and User-Agent are stored. Using them as hash inputs is very different from keeping them on the event.
  • Check how unique users are counted. If a tool reports uniques from rotating identifiers without saying so, its headline number is inflated and you will not be told by how much.
  • Decide what you need people-level metrics for. If funnels and retention drive your decisions, plan for a consent path rather than expecting cookieless to cover it.
  • Control where it runs. Self-hosting means the IP never reaches a third party at all, which is a stronger claim than any hashing scheme.

The cookieless analytics tools roundup compares how Pug, Plausible, Fathom, Umami and Matomo derive their identifier, and how often each one’s salt rotates.

Cookieless is a genuinely good default. It lets you measure honestly on day one, with no identifier on the device and often nothing to consent to. It is not a free replacement for identity, and any tool that tells you otherwise is either not counting people or not telling you how. For the broader practice around it, see privacy-first analytics, and for auditing what your events carry, the free PII event auditor.

What is cookieless analytics?

Analytics that measures traffic without storing a persistent identifier on the visitor’s device. Instead of writing a cookie or a localStorage entry, the tool either counts events with no identifier at all, or derives a short-lived one server-side from data the request already carries, typically a keyed hash of IP and User-Agent that is rotated and discarded on a schedule.

How do you implement cookieless tracking?

Start from a tool that stores no identifier on the device by default, or switch an existing one into its cookieless mode, so any identifier is derived server-side from a keyed hash that rotates and is deleted on a schedule. Then keep those rotating identifiers out of the metrics that count people (unique users, funnels, retention) while still counting their events and sessions, and add a consent path for visitors who opt in to a persistent identity. In Pug this is the default: a plain init() stores no identifier on the device.

Is cookieless analytics GDPR compliant?

Not automatically. Cookieless removes the ePrivacy “storage” trigger that makes most analytics need a consent banner, but GDPR still applies to any processing of personal data that follows, so you still need a lawful basis, transparency, and data minimisation. A rotating identifier that is genuinely unlinkable after rotation is a much stronger position than a persistent one, but the assessment is yours to make with your own counsel.

Is cookieless tracking the same as fingerprinting?

No, though both derive an identifier from request data rather than storage. The difference is persistence. A fingerprint is built to stay stable so the same device is recognisable weeks later, which regulators have treated as personal data requiring consent. A rotating cookieless identifier is built to stop working: once the day’s secret is deleted, the identifiers from that day can no longer be linked to a device or to each other.

Is Google Consent Mode cookieless?

Only for visitors who decline, and only in the advanced setup. There, Google’s tags load before the banner and, while consent is denied, send pings without cookies that can carry a timestamp, the User-Agent, the referrer, the consent state and a random number generated on each page load; Google models the missing visitors from them. A visitor who accepts gets cookies as usual, such as GA4’s _ga cookie, which lasts two years by default. In the basic setup the tags don’t load until the visitor answers the banner.

Does cookieless analytics break funnels and retention?

It breaks them if you count the rotating identifiers as people. A funnel spanning two days sees one visitor as two strangers, and a retention cohort measured on rotating identifiers returns approximately zero by construction. The fix is not better hashing. It is excluding those identifiers from any metric that counts people, while still counting their events in totals and session metrics.

Do I still need a cookie banner with cookieless analytics?

Often not for the analytics itself, since nothing is stored on the device. The EDPB’s Guidelines 2/2023 still count the script’s request as access under Article 5(3), but say that does not by itself mean consent is needed, and France’s CNIL exempts audience measurement that meets its conditions. A banner is about your whole site, not one tool: embedded video, ad pixels, chat widgets and A/B testing frequently store their own identifiers. Requirements also vary by jurisdiction. Confirm against your own legal advice rather than a vendor’s marketing page.

Cookieless by default, without the blind spot

Pug starts cookieless, counts consent-declined traffic honestly, and is free and open source under AGPL-3.0.

Questions? Email hello@pug.sh