How many people visit your website, how do they find it, and which pages do they read? Without answers to those questions, every improvement is guesswork. Traditional analytics tools give you the answers, but there’s a catch: they set cookies, send data to third parties and therefore usually need consent.
GDPR-compliant analytics takes a different approach: the statistics run on your own server, use no cookies and stick to the metrics you actually use. In this post I explain how it works, where the limits are and how to set up a solution like this in WordPress. One thing up front: this is an overview based on my work as a developer, not legal advice.
Why Traditional Analytics Tools Usually Need Consent
Two sets of rules come into play. The first is Section 25 of the TDDDG (German Telecommunications Digital Services Data Protection Act), which was called the TTDSG until May 2024. Under it, information may only be stored on or read from a visitor’s device if they have consented—unless that’s strictly necessary for the service they asked for. An analytics cookie almost never falls under this exception.
The second is the GDPR. IP addresses and identifiers that can be used to recognize a device count as personal data. If a tool passes them on to an external provider, you need a legal basis for that, and you usually have to sign a data processing agreement with the provider. If the provider is based outside the EU or processes data there, additional requirements for transfers to third countries apply.
In practice, that means if you use Google Analytics or a similar service, you need a cookie banner that only loads the scripts once visitors agree. That works, but it has a side effect: anyone who declines doesn’t show up in your statistics. When a banner is actually required is covered in my post on whether you need a cookie banner.
Website Analytics Without Cookies: What’s Different
If you’re looking for a Google Analytics alternative, you’ll quickly come across cookieless, self-hosted analytics. It flips the setup around: instead of sending data to a service, it counts page views directly on your web server. The key differences:
- The data stays on your server. No external analytics service receives information about your visitors.
- No cookies are set and no identifiers are stored in the browser. A visitor isn’t recognized across multiple visits.
- The analysis is based on aggregated metrics—such as how often a page was viewed—rather than the paths of individual people.
That said, “cookieless” isn’t a seal of approval. Some tools skip cookies but build a digital fingerprint from browser characteristics like screen size, language or installed fonts in order to recognize visitors. Reading that kind of information can also fall under Section 25 TDDDG. So check the documentation: How does the tool count visits? Does it store or truncate IP addresses? And how long is raw data kept?
If an analytics tool is built to be that sparing with data, legitimate interest under Art. 6(1)(f) GDPR is often a possible legal basis—in which case consent is frequently not required. Whether that holds up for your website depends on the specific setup. If in doubt, check with your data protection officer or a law firm that specializes in data protection.
The Metrics Small Websites Really Need
Big analytics suites offer an endless range of reports. For the website of a freelancer or small business, four questions are usually enough:
- Visitors and page views: How is your reach developing over weeks and months?
- Sources: Do visitors come from search engines, links on other websites, social networks or directly?
- Top content: Which pages and posts get read—and which hardly at all?
- Inquiries and goals: How many contact requests or call bookings come in?
Not every analytics tool tracks goals like submitted forms. That’s not a problem: you know the number of inquiries from your inbox. Put it next to your visitor numbers once a month, and you’ll see whether more reach also leads to more inquiries. What else matters for a website for freelancers and self-employed professionals is something I cover in a separate post.
Where the Limits Are
Not recognizing visitors has consequences you should be aware of:
- No user profiles are created. You can’t trace individual visitors’ journeys across multiple visits or devices.
- New and returning visitors can’t be told apart, or only roughly.
- Ad retargeting and building audiences for ads aren’t possible—that’s not what this kind of analytics is for.
- If you want to evaluate ad campaigns, you’ll usually also need the ad platform’s own measurement tools—and, once again, consent.
For websites meant to inform people and win inquiries, these limits are rarely a drawback. They reflect the principle of data minimization: you only collect what you need to make decisions.
Setting Up GDPR-Compliant Analytics in WordPress
Search for terms like “cookieless tracking” and you’ll find several plugins for WordPress. The switch itself is manageable. Here’s how I go about it:
- Take inventory: Open the “Network” tab in your browser’s developer tools to see which external services your website loads—just as I describe in my post on self-hosting Google Fonts. Look out for addresses that belong to analytics and tag services.
- Define your questions: Write down which of the four questions above you want to answer. That makes choosing a tool easier.
- Choose a tool: Make sure the data is stored on your own server, no cookies are set and no fingerprinting takes place.
- Install and configure the plugin: If possible, exclude your own visits as a logged-in administrator so your work on the site doesn’t skew the numbers. Set how long data is kept, if the tool offers that option.
- Remove old tracking: Delete tracking codes from your theme settings, code snippets in the page header and Tag Manager. Otherwise both solutions will run side by side.
- Update your privacy policy: Even cookieless analytics processes data. Name the tool, the purpose, the data processed, the legal basis and how long the data is stored.
- Check the result: Clear your browser and page cache, then use the developer tools to confirm that no more cookies are set and no requests to external analytics services show up.
From My Own Work: Analytics Without a Third-Party Cloud
For me, privacy starts with my own website. I don’t set any cookies for visitors here: the fonts live on my own server, the contact form works without reCAPTCHA, and you book calls through my own solution, with no third-party service involved.
Kakapo Analytics grew out of the same mindset. It’s part of KakapoWP, my family of WordPress plugins. The plugin creates anonymous, cookieless web analytics directly on the server that runs WordPress and shows real-time visitors, sources and top content—without a third-party cloud.
Kakapo Analytics isn’t the only solution of its kind. There are other self-hosted analytics tools, some as WordPress plugins, some as standalone software. Check every tool against the points in the guide above—mine included.
Frequently Asked Questions
Do I need a cookie banner for cookieless analytics?
Usually not for the analytics itself, as long as it neither sets cookies nor accesses information on the visitor’s device. Whether your website as a whole needs a banner depends on all the services you’ve embedded, though—videos, maps or social media content, for example.
Do I have to mention the analytics tool in my privacy policy?
Yes. Even without cookies, data is processed when a page loads—the IP address, for example, so the server can deliver the page. Describe which tool you use, for what purpose, on what legal basis and how long data is stored.
Are the numbers as accurate as in Google Analytics?
They’re generated differently. Since nobody has to decline a banner, they include visitors who would be missing with traditional tracking. On the other hand, returning visitors are hard to tell apart. No tool counts perfectly—so focus on trends over time rather than individual numbers.
Can I keep using Google Analytics?
Yes, with consent. For that you need a cookie banner that blocks the scripts until visitors agree and keeps a record of their consent. My plugin Kakapo Consent takes care of this and supports Google Consent Mode v2 as well as IAB TCF 2.2. Just be prepared for two analytics tools running side by side to show different numbers.
The Bottom Line
GDPR-compliant analytics doesn’t mean giving up on numbers. Cookieless, self-hosted analytics answers the questions that matter for most websites—who’s visiting, where they come from and what they read—without handing data over to third-party services. What you deliberately give up are user profiles and ad retargeting.
Want to know which services your website loads today and what privacy-friendly analytics could look like for you? Let’s talk—free of charge, by phone or video call. Book a call here.
Note: I’m writing as a developer, not a lawyer. For your specific situation, please get legal advice.