GDPR-Compliant Analytics Without Cookie Banners
How to track website traffic legally in the EU — without annoying your visitors.
If you run a website that serves visitors in the European Union, you have almost certainly dealt with cookie consent banners. They are everywhere — and for good reason. The General Data Protection Regulation (GDPR) requires explicit consent before you can set cookies that track personal data. But here is the thing: cookie banners are not actually required by the GDPR itself. They are required because the analytics tools most websites use — namely Google Analytics — set tracking cookies. Remove the cookies, and you remove the legal obligation to ask for consent.
This post explains how cookie-free analytics works, what the GDPR actually requires, and how you can get accurate, useful website analytics without a single consent pop-up.
The Cookie Banner Problem
Cookie consent banners were supposed to give users control over their data. In practice, they have become one of the most universally disliked features on the web. Studies consistently show that consent pop-ups increase bounce rates, reduce time on page, and frustrate visitors who just want to read your content. Some users reflexively click "reject all" — or worse, leave the site entirely before interacting with the banner at all.
For website owners, this creates a painful trade-off. You want analytics data to understand how your site is performing, but the tool you use to collect that data actively degrades the experience you are trying to measure. It is a self-defeating loop: the measurement tool distorts the thing being measured.
The reason cookie banners exist is straightforward. Traditional analytics platforms like Google Analytics set cookies on your visitors' browsers — specifically, the _ga and _gid cookies — to identify users across sessions and track them over time. These cookies contain unique identifiers, which count as personal data under the GDPR. Processing personal data requires either explicit consent or another lawful basis. For marketing and analytics cookies, consent is the only realistic option. Hence the banners.
What the GDPR Actually Requires
The GDPR is often misunderstood as a blanket ban on data collection. It is not. It is a framework for how personal data must be handled. The regulation defines personal data broadly: any information that can be used to directly or indirectly identify a natural person. This includes names, email addresses, IP addresses, and cookie identifiers.
If you process personal data, you need a lawful basis. Article 6 of the GDPR lists six options, but for web analytics the two relevant ones are consent (Article 6(1)(a)) and legitimate interest (Article 6(1)(f)). The ePrivacy Directive — which works alongside the GDPR — adds another layer: storing or accessing information on a user's device (i.e., setting cookies) requires consent, unless the cookie is strictly necessary for the service the user requested.
Analytics cookies are not strictly necessary. So you need consent to set them. But — and this is the key insight — if your analytics tool does not set cookies and does not process personal data, neither the GDPR consent requirement nor the ePrivacy cookie rule applies. You can collect analytics data freely, without a banner, without a consent management platform, and without worrying about opt-in rates destroying your data accuracy.
How Cookie-Free Analytics Works
Cookie-free analytics replaces persistent client-side identifiers with a privacy-preserving, server-side approach. Here is how it works in practice.
When a visitor loads a page, the analytics script sends a lightweight request to the analytics server. No cookies are set. No data is written to localStorage or sessionStorage. No browser fingerprinting techniques are used — no canvas hashing, no WebGL probing, no font enumeration.
On the server side, the visitor's IP address is combined with a daily-rotating salt and hashed using a one-way function. The raw IP address is discarded immediately — it is never stored. The resulting hash serves as an anonymous, non-reversible visitor identifier that is valid only for the current calendar day. When the salt rotates the next day, the same visitor produces a completely different hash. This means visitors are counted as "unique" within a single day, but they cannot be tracked across days, across sessions, or across different websites.
This approach is fundamentally different from fingerprinting. Fingerprinting attempts to create a stable, persistent identifier from browser characteristics — which the GDPR treats the same as cookies. Daily-salted IP hashing produces a transient, non-persistent identifier that cannot be used to build a profile of any individual over time. The French data protection authority (CNIL) has explicitly recognized this distinction in its guidance on audience measurement tools that can be exempt from consent.
What You Still Get
A common objection to cookie-free analytics is that you must be giving up meaningful data. In reality, you retain the metrics that matter most for understanding your website's performance:
- Pageviews — total and per-page, with trends over time.
- Unique visitors — counted per day using the hashed identifier.
- Bounce rate — single-page sessions as a percentage of total visits.
- Referrers — where your traffic is coming from (search engines, social media, direct links, other websites).
- UTM parameters — full campaign tracking with utm_source, utm_medium, utm_campaign, and more.
- Top pages — your most-visited content, ranked and sortable.
- Geographic location — country and city, derived from IP geolocation before the address is hashed and discarded.
- Devices and browsers — parsed from the User-Agent header, giving you desktop vs. mobile breakdowns and browser distribution.
What you lose is the ability to track individual users across multiple days. Multi-day user journeys, cohort analysis, returning visitor rates, and cross-site tracking are not possible without persistent identifiers. For most website owners — bloggers, SaaS companies, e-commerce stores, agencies — the day-level unique visitor count and the metrics listed above provide more than enough insight to make informed decisions. And you get these metrics at 100% accuracy, because there is no consent banner filtering out a portion of your traffic.
CCPA Compliance Too
The California Consumer Privacy Act (CCPA) and its amendment, the CPRA, give California residents rights over their personal information, including the right to opt out of the sale or sharing of personal data. If your analytics tool does not collect personal information — no cookies, no persistent identifiers, no IP addresses stored — then there is nothing to sell or share. You are compliant by default.
This same logic extends to other emerging privacy regulations, including Brazil's LGPD, Canada's PIPEDA, and various US state privacy laws. When your analytics infrastructure is built from the ground up to avoid personal data collection, compliance is not a checklist exercise — it is an architectural property.
The EU and Google Analytics
Between 2022 and 2023, data protection authorities (DPAs) in Austria, France, Italy, and several other EU member states issued formal decisions finding that the use of Google Analytics violated the GDPR. The core issue was not just cookies — it was the transfer of personal data to the United States, where EU citizens' data lacks equivalent legal protections.
These rulings came after complaints filed by the advocacy group noyb (led by Max Schrems), following the invalidation of the EU-US Privacy Shield by the Court of Justice of the European Union in the Schrems II decision. The Austrian DPA (DSB) was the first to rule, in January 2022, finding that a website's use of Google Analytics constituted an unlawful data transfer. The French CNIL, the Italian Garante, and others followed with similar findings.
Google responded by releasing GA4 and claiming it could be configured to avoid storing IP addresses. However, the data still flows through Google's servers and infrastructure. The fundamental problem — that visitor data is processed by a US-based company subject to US surveillance laws — remains. While the EU-US Data Privacy Framework adopted in 2023 has provided a new legal basis for transatlantic data transfers, privacy advocates have already signaled challenges, and the history of invalidated frameworks (Safe Harbor, Privacy Shield) suggests the legal ground may shift again.
For website owners who want regulatory certainty, the simplest path is to use an analytics tool that never collects personal data in the first place. No personal data means no transfer risk.
How to Migrate from Google Analytics
Switching to cookie-free analytics is far simpler than most people expect. Here is the process:
- Sign up for Abner. Create an account and add your website domain. You can start a free 14-day trial with no credit card required.
- Add the tracking script. Paste a single <script> tag into your site's <head>. The script is under 2KB — it will not affect your page load speed. See the installation guide for detailed instructions.
- Remove your old Google Analytics code. Delete the GA script tag and the gtag.js or analytics.js snippet from your site.
- Remove your cookie consent banner. If Google Analytics was the only reason you had a cookie banner (and for many sites it is), you can safely remove your consent management platform entirely. Check that you do not have other services setting non-essential cookies first.
- Verify data is flowing. Visit your site, then check your Abner dashboard. You should see your visit appear within seconds.
The entire process takes about five minutes. There is no complex configuration, no tag manager setup, and no consent mode to wrestle with. For a full walkthrough, see the getting started guide.
How Abner Handles Privacy
Abner was built from day one as a privacy-first analytics platform. Here is what that means in concrete terms:
- No cookies, ever. The Abner script does not set cookies, write to localStorage, or use any form of client-side storage.
- Sub-2KB script. The tracking script is under 2KB, making it one of the lightest analytics scripts available. It loads asynchronously and does not block rendering.
- IP hashing with daily salt. Visitor IP addresses are hashed with a cryptographic salt that rotates every 24 hours. The raw IP is never written to disk or stored in a database. The hash cannot be reversed, and it becomes meaningless the next day.
- No fingerprinting. Abner does not use canvas fingerprinting, WebGL hashing, audio context probing, or any other technique to create persistent identifiers from browser characteristics.
- EU-compatible infrastructure. Your analytics data is stored in infrastructure that complies with EU data residency expectations. There are no hidden data transfers to third parties.
- CSV export. You can export all of your analytics data as CSV files at any time, giving you full data portability and ownership. No vendor lock-in.
- Transparent privacy policy. You can review exactly what Abner collects and how it is processed in our privacy policy.
Because Abner never processes personal data, you do not need to mention it in your cookie policy, add it to your consent management platform, or conduct a Data Protection Impact Assessment (DPIA) for it. It simply falls outside the scope of the GDPR's consent requirements.
The Bottom Line
Cookie banners are not a law of nature. They are a side effect of using analytics tools that track personal data. If you switch to a tool that does not track personal data, the legal requirement for a consent banner disappears — and so do the UX problems, the bounce rate impact, and the incomplete data caused by visitors who opt out.
You do not have to choose between understanding your traffic and respecting your visitors' privacy. Cookie-free, GDPR-compliant analytics gives you both. The data is accurate, the setup is simple, and your visitors never have to click through a pop-up just to read your blog post.
Try Abner free for 14 days and see what your analytics look like without the consent banner overhead.