Privacy-First Analytics: Tracking With Zero Cookies
What a cookie consent banner really costs, what cookieless analytics can and cannot tell you, and how to check what your own site is loading in five minutes.
Every website that loads advertising or analytics scripts from a third party needs a consent banner, and every one of those scripts runs on the same thread your visitor is trying to tap. Cookieless measurement moves the work to your server, so there is no script to block, no cookie to store and nothing for the visitor to dismiss. It also gives you less: you can count visits, but you cannot follow one person across days. Both approaches are legitimate, and the useful thing is to choose one deliberately rather than by accident.
The banner is not the real problem
Every small business owner has met the modal. The page has finished loading, and then a box covers half the screen explaining that the site shares data with a long list of advertising partners and asking you to choose.
The instinct is to blame the box. But the box is only there because something on the page is asking for information about the visitor, and that something is nearly always a script loaded from somebody else’s domain. The box is the visible cost. The invisible one is that script.
Three things happen when it arrives. It is downloaded, which competes with your images. It is parsed and executed, which happens on the same thread your visitor’s finger is trying to use when they tap the menu. And it very often shifts the page as it settles, which moves the button they were aiming at.
None of that is a theory you have to take on trust. You can see all of it on your own site in about five minutes.
Five minutes to see what your site loads
- Run your address through Google’s PageSpeed Insights. It is free and it runs against your live page. It reports how long the page takes to show its main content, how long the page is unresponsive when someone taps it, and how much the layout moves as it loads. Google publishes the thresholds it measures against on web.dev: an interaction should respond within 200 milliseconds, and the page should not shift more than 0.1 as it loads.
- Open the browser’s Network panel and reload your page. Sort by size. The list of domains is the answer: every domain that is not yours is a company your visitor’s browser is talking to on your behalf.
- Look at the main thread. In the Performance panel, the main thread chart shows the long tasks. Third-party scripts show up as coloured bars you did not write.
- Read what the banner says. It usually names the tools. Write them down. That list is the list of things running on your visitors’ phones.
Now you have facts about your own site, which is worth more than any general claim about what tracking scripts cost.
What cookies are actually for
The reason a site asks for consent is not the counting. It is the identity.
A cookie is a small file your browser keeps, and its real job is to let the analytics tool know that Tuesday’s visit and Wednesday’s visit were the same person. With that, the tool can count returning visitors, attribute a sale to a campaign, and follow a path through the site. Without it, all you have is visits.
So a decision to drop cookies is a decision to give up those three things, and only those three things. Traffic counts, popular pages, referrers and rough unique-visitor-per-day numbers all survive.
That is a real trade, and for most small businesses the traffic side of it is the part they actually use.
What cookieless measurement is
The alternative is to do the counting on your side, where the request arrives anyway. The result is a zero-cookie measurement: nothing is written to the visitor’s device, and no script has to be downloaded before the count can happen.
┌──────────────────────────────────────────────────────────────────────────────┐
│ HOW A COOKIELESS COUNT WORKS │
├──────────────────────────────────────────────────────────────────────────────┤
│ 1. The visitor requests a page. The server sees the request, the path, │
│ the time, the referring page and the browser details. │
│ 2. The server combines those with a secret that changes every day and │
│ stores only the resulting digest. │
│ 3. The count goes up. The visitor's browser stores nothing. │
├──────────────────────────────────────────────────────────────────────────────┤
│ BECAUSE THE SECRET CHANGES DAILY, DIGESTS FROM DIFFERENT DAYS CANNOT BE │
│ MATCHED UP. THERE IS NO IDENTIFIER TO FOLLOW FROM ONE DAY TO THE NEXT. │
└──────────────────────────────────────────────────────────────────────────────┘
Three practical consequences, and they are the whole case for it.
There is nothing to block. No script is loaded onto the page, so no ad-blocker can stop it and no visitor loses your statistics because they have an extension installed. That also means your numbers stop disagreeing with your server logs.
There is nothing to consent to for that measurement. No cookie, no identifier, no storage on the device. Whether you still need a banner depends on everything else you run, and on the rules that apply where your visitors are. The ICO’s guidance on data protection principles is the right starting point if you are not sure, and it is worth asking a lawyer rather than a blog, including this one.
Nothing runs on the visitor’s phone. No download, no parsing, no long task, no layout shift. Your own pages get the whole main thread.
What you give up
Honesty here matters more than enthusiasm.
- No individual journeys. You cannot watch one person move through your site. You know that three people read the pricing page, not which three.
- No returning-visitor number across days, unless you build something that tracks it, which is exactly the thing cookieless measurement avoids.
- No campaign attribution in the form advertising platforms sell. You can see that visits came from a search term, not which ad closed the sale.
- No session recordings. This is the one small business owners miss most, and it is worth being honest about: heatmaps and recordings are the main reason many owners keep a recording tool at all, and those tools need consent.
That last point is why this is a decision rather than an upgrade.
What this site does
Since this article is on a website, it is fair to say what we do here rather than only what we recommend.
This site loads Google Analytics 4 and Microsoft Clarity, and it asks first. If you accept, they load; if you decline, they do not load at all, and your choice is remembered so you are not asked again. If you change your mind, the privacy page has a button to change it, which removes the analytics cookies this site can reach and reloads the page. Form contents are masked in the session recordings.
We made that choice because the analytics and the recordings were already in place when the site was rebuilt, and because the recordings are genuinely useful for spotting where people get stuck. We are not going to pretend that makes a cookie banner free, or that consent is the only defensible choice. It is a deliberate one.
If you want to change what yours does
- Write down what you run and why. Every tag, every pixel, every tool. Most owners cannot do this from memory, and the list is usually longer than expected.
- Decide which numbers you actually look at. If you check one report a month and it is visits and traffic sources, you need a fraction of what you are running.
- Move what you can to the server. Traffic counts, popular pages and referrers do not need a script in the browser.
- If you keep browser tools, load them late and behind consent, and check that the consent state is respected on every page rather than only the one where the banner appears.
- Write a privacy page that says what you load and when, in plain words, with a way to change your mind. A short honest page is better than a long generated one.
The measurement you use afterwards is the same either way. You still look at the same report, you just draw it from somewhere that does not cost your visitors their battery, their attention and their trust.
Want to check how your own site behaves? Read why a faster website means more enquiries, or look at the privacy page for exactly what this site loads.
Frequently Addressed Technical Inquiries
Why do cookie consent banners hurt a website? [+]
Two reasons. The first is obvious: the visitor has to read and dismiss a dialog before they can use the page, and every extra step loses a few people. The second is less visible and more expensive. The banner is only needed because something on the page is asking for information about the visitor, and that something usually arrives as a script from a third party which downloads, parses and runs on the same main thread the visitor is trying to tap. Removing the scripts removes the banner and the delay at the same time.
How does Google Analytics 4 affect page speed? [+]
It adds a script from another domain, which has to be downloaded, parsed and executed before it can report anything, and that work competes with the page the visitor is trying to use. The size and the cost depend on how the tag is configured, so the honest answer is a measurement rather than a number. Run your own address through Google's PageSpeed Insights, then open the browser's Network panel, reload the page and read the total transferred size and the main-thread time attributed to third-party scripts.
How can you measure a website without cookies? [+]
By counting requests on the server instead of in the visitor's browser. The server sees the request, the path and the time, and can record a count. To keep the counts roughly unique per visitor, the server can combine the address and the browser details with a secret that changes every day and store only the result, so it cannot be linked from one day to the next. Nothing is stored on the visitor's device, there is no script to block and no banner to show. What you give up is the ability to follow a person across days, and any per-visitor detail.
Sources
- [1] Web Vitals | web.dev Verifies the thresholds this article tells readers to measure against: Google's guidance sets Interaction to Next Paint at 200 milliseconds or less and Cumulative Layout Shift at 0.1 or less, each measured at the 75th percentile of page loads.
- [2] A guide to the data protection principles | ICO Verifies the regulatory starting point this article points to for anyone unsure whether they still need a banner: the guidance sets out the seven principles, beginning with lawfulness, fairness and transparency, then purpose limitation and data minimisation.
- [3] PageSpeed Insights | Google Verifies the free audit tool this article recommends for checking a live site: the page takes a URL and runs an analysis, reporting how long the page takes to show its main content, how long it is unresponsive when tapped, and how much the layout moves as it loads.
Related articles
How Your Website Supports Business Credibility
How people judge your business from your website, and the first few seconds where slow pages, broken mobile navigation and generic design quietly cost you trust.
Mastering INP: Core Web Vitals with Astro Islands
Improving INP after Google retired FID, and how removing client side hydration with islands architecture keeps interactions under 40 milliseconds.
Website Due Diligence and Technical Debt
The website review a buyer, lender or new owner does on a site they are about to inherit: the checks that find the debt a generic inspection misses.
WANT IT REVIEWED FOR YOUR BUSINESS?
The above is general. Tell me about your business and I will review business websites for your case: what applies, what does not, and in what order.
Business websites ↗TELL US ABOUT
YOUR BUSINESS.
Tell us what your business does, what you need and your approximate budget. We will review the scope and next steps with you.
READY TO IMPROVE YOUR WEBSITE?
Describe what you want your website to do for your business. Jorge will help you define the scope, understand the cost and choose the next step.