You put in the work to get Google Analytics running, added a consent banner to comply with privacy laws, and regularly check your dashboard to monitor how your site is performing. You’ve done everything right.
So it’s frustrating to learn that a chunk of your traffic is missing from those reports.
If a visitor doesn’t click the ‘Accept’ button in your consent banner, standard Google Analytics ignores them completely.
Let’s fix that data gap. By the end of this tutorial, you’ll have cookieless tracking running on your WordPress site, so you can keep measuring the visitors who never accept cookies, while fully respecting their choice.
Why I Track Visitors Without Cookies
With cookieless tracking, you can monitor the people who visit your website without adding a cookie to their device. Instead of tagging people with an ID it recognizes later, your analytics simply records the visit as a privacy-friendly, anonymous event.
Here’s the major reasons why cookieless tracking is becoming so popular:
- No More Invisible Traffic: Privacy regulations often treat non-consent as a hard “no” when it comes to tracking. Cookieless tracking ensures those visits still count.
- Misleading comparisons: Cookie consent rates vary wildly by audience and traffic source. When you compare two pages, you might just be comparing who bothered to click ‘Accept.’ Anonymous logging gives you the complete picture.
- Zero Extra Cost: You can set up cookieless tracking using free plugins.
- Future-Proof Analytics: As privacy laws tighten worldwide and browsers keep adding restrictions on cross site tracking, a setup built around consent is far less likely to break when the rules change again.
I also want to be straightforward about this method’s limitations. You’ll still need a banner, and anyone who clicks ‘Accept’ will still get cookies. The real win is that everyone else gets tracked anonymously instead of being completely excluded.
If you don’t want to display a consent banner, then you’ll need to replace Google Analytics with a different tool. To help you out, I’ve included some options in the FAQ.
Step 1: Connecting Google Analytics to Your WordPress Site
The first step is installing Google Analytics on your WordPress website. For that, I use MonsterInsights as it lets you connect Google Analytics to your site in just a few clicks without ever touching a line of code or editing theme files.
There’s even a free, lite version of MonsterInsights that you can download from the official WordPress repository. Since it has everything you need to add cookieless tracking, I’ll be using the free version throughout this tutorial.
If you’ve never added a plugin before, our step-by-step guide on how to install and activate a plugin covers the whole process.
Upon activation, go to Insights » Settings and click the ‘Launch Setup Wizard’ button.

From there, just follow the onscreen prompts to connect MonsterInsights to your Google Analytics account.

When you arrive back in your dashboard, you should see a connected Website Profile and an active property ID. This means you’ve successfully connected WordPress to your Google Analytics account.

Step 2: Installing WPConsent on Your Site
Now you’ve set up Google Analytics, the next step is adding the tool that enables cookieless tracking. For that, I use a privacy plugin called WPConsent because it enables Google Consent Mode by default and works seamlessly with MonsterInsights.
Once again, there’s a free version of WPConsent that includes everything you’ll need, so we’ll be using that throughout this tutorial.
You can install WPConsent the exact same way you installed MonsterInsights. Once activated, you’ll see a new WPConsent tab in your menu where you can manage your dashboard, banner design, scanner, and settings.
Step 3: Scanning Your Site for Cookies
Before you can manage your cookies effectively, WPConsent needs to scan your site to see what’s already running. The WPConsent plugin should run this scan during the onboarding process.
However, you can also trigger this scan manually by going to WPConsent » Scanner and clicking the ‘Scan Your Website’ button.

The scan checks your pages against WPConsent’s database of known services so it can identify everything correctly. Once it finishes, it’ll display all the detected services and cookies in its ‘Scan Overview’ section.
Underneath, the Detailed Report groups everything into categories. You can click ‘View Cookies’ next to any service to see more information.

Step 4: Switching On Google Consent Mode and Script Blocking
Now comes the setup that turns standard Google Analytics into cookieless Google Analytics. Google Consent Mode is a framework that passes your visitors’ privacy choices directly to Google. Google then automatically adjusts how Analytics behaves based on whether the visitor has accepted or declined cookies.
To set this up, go to WPConsent » Settings.
Here, click to activate the ‘Consent Banner’ and ‘Script Blocking’ sliders. After that, make sure ‘Default Allow’ is disabled.

Further down the same page, make sure that the ‘Google Consent Mode’ toggle is enabled.

Once everything is set up, click ‘Save Changes’ to store your settings.
Here is what happens behind the scenes: by default, your site tells Google that all tracking and personalization permissions are denied, and only essential security and site functionality are allowed.
Because analytics storage is blocked, Google Analytics cannot place a tracking cookie in the visitor’s browser or recognize them on return visits, and instead sends an anonymous signal with no identifier attached. Google uses these signals to fill the gaps in your reporting.
However, if that visitor clicks ‘Accept’ on your banner, Google Analytics instantly switches back to its normal tracking behavior. With that said, let’s design our cookie consent banner.
Step 5: Designing and Publishing Your Cookie Banner
To build this banner, go to WPConsent » Banner Design. Under the Banner Layout section, you’ll find two layout choices.

The Long Banner stretches across the full width of the screen, with the option to display it at either the top or the bottom. I typically use a Long Banner on content sites because it’s impossible to miss. This encourages visitors to make a choice right away instead of scrolling past the banner.
The Floating Banner is a smaller box tucked into a corner of your screen. This is what I use on portfolio and photography sites where a full width bar would cut into the visual layout.
As you work, you can click the ‘Preview’ button to see how the consent banner will look to visitors.

Once everything looks right, click the Save button to publish your banner.
You can now visit your site to see the banner in action. If it doesn’t show up right away, don’t worry. This is a common issue that’s almost always caused by page caching. Clearing your caching plugin or opening your site in a private browsing window usually makes the banner appear immediately.
Step 6: Proving That No Cookies Are Being Set
This is my favorite part, as you get to see your cookie controls in real time. WPConsent has a built-in tool to test whether Google Analytics cookies are being set.
To run this test, go to WPConsent » Scanner and click the ‘Inspector’ tab.

Click the ‘Start Inspector’ button to begin.
The Inspector opens your live site and clears existing cookies so you can view it as if you’re a brand-new visitor.
First, check for a Discovery Mode notice at the top. If it says script blocking is disabled, Inspector won’t confirm if blocking works. If you see that, simply jump back to Step 4 and turn Script Blocking on.
Next, browse a few pages without accepting or denying the cookie banner.
You should see zero Google Analytics cookies listed, so make sure nothing starting with _ga appears in the table.

That proves your analytics is running cookielessly. Once you click ‘Accept’ on the banner, WPConsent updates your choice and allows Analytics to store its cookies as normal.
Keep in mind that the Inspector and the Scanner handle two different jobs. The Scanner checks your pages against a database of known services, while the Inspector watches cookies land in real time as you browse. That’s why their lists might look slightly different, and it’s completely normal.
And that’s it! Your Google Analytics now tracks visitors without setting cookies until they opt-in.
Frequently Asked Questions About WordPress Analytics Without Cookies
Switching to cookieless tracking often raises practical questions about compliance, data accuracy, and daily website management.
To help you set up your analytics with confidence, I’ve answered the most common questions about tracking WordPress visitors without using traditional cookies below.
Do I still need a cookie banner if my analytics do not use cookies?
Yes, with this setup you do. The banner captures your visitor’s choice, so Google Consent Mode knows whether to stay in cookieless mode or switch to full tracking.
If you remove the banner, your site will be stuck in cookieless tracking permanently. As a result, you’ll miss out on full analytics from users who would have gladly opted in.
For most site owners, keeping the banner while collecting anonymous data from non-consenting users gives you the best of both worlds.
Is tracking visitors without cookies actually GDPR compliant?
While no single tool guarantees total compliance on its own, this setup puts you in a very strong position. Because Google Analytics still sends data to external servers, you still need a privacy policy explaining what information you’re collecting from visitors.
However, because this approach respects visitor preferences instead of trying to bypass them, it forms a solid foundation for GDPR compliance.
Will my analytics data be less accurate without cookies?
Your data becomes less detailed in one area, but vastly more complete overall.
You will lose cross-session history, which makes returning visitor metrics and complex conversion journeys less precise. However, you gain a much fuller picture of your total site activity.
Where accuracy really matters, pair this setup with Google Search Console for an independent view of your search traffic.
What exactly does WPConsent do, and do I really need it?
WPConsent does two key things:
- It displays and records the consent choices your visitors make.
- It translates those choices into signals Google Analytics understands through Google Consent Mode.
By contrast, MonsterInsights alone can’t read or handle visitor consent, which means that WPConsent is a crucial part of this setup.
Do I need the paid versions of these plugins?
No. You can complete every step in this tutorial using the free versions of WPConsent and MonsterInsights.
If you’d rather use something else for consent, Complianz is a well established alternative. It generates region specific privacy documents alongside its banner and also supports Google Consent Mode.
To skip Google Analytics entirely, Burst Statistics keeps analytics in your own WordPress database with a cookieless mode you can switch on, WP Statistics reports anonymized visits without cookies at all, and Plausible is a paid hosted service that’s cookieless by design.
Wrapping Up
If you’ve been following along, you now have WordPress analytics running without cookies, recording every visitor who lands on your site. This includes visitors who completely ignore your cookie consent banner.
Now you’ve set up tracking, the next step is making that data work for you.
Our video library shows you how to turn those insights into action, with practical guides on core WordPress setups, traffic-boosting plugins like All in One SEO, and everything else you need to grow your site.

Leave a Reply