Do you need a cookie banner for analytics?

Only if your analytics stores something on the visitor’s device or collects personal data. Google Analytics does both. Cookieless analytics does neither.

Create a free accountFree for up to three sites. No card needed.

Updated November 14, 2026

The rule in one sentence

A website may not store or read anything on a visitor's device without asking first, unless it is strictly necessary for the site to work. Analytics is not strictly necessary. So analytics that sets cookies has to get a yes first.

  1. 1. The tool wants to store a cookie in the browser.
  2. 2. The site has to ask the visitor first.
  3. 3. If the visitor says no, the visit isn't counted.
ToolNeeds consent?Why
Google AnalyticsYesSets cookies and sends data to Google.
Ad pixels from Meta, TikTok and LinkedInYesSet cookies and follow people across sites.
Hotjar, Microsoft Clarity and other session recordersYesRecord what each visitor does.
Cookieless analytics, like OkidokiNoStores nothing in the browser and collects no personal data.

Not sure what your site loads? The tracker check lists it in a few seconds.

Many people click no or close the banner without answering. Those visits are missing from your numbers.

  • You see fewer visitors than you have, often a third fewer in Europe.
  • You can't tell which sources and campaigns work, because the gaps aren't spread evenly.
  • The banner gets in the way of the first impression on every page.
  1. Pick a cookieless tool that counts visits without telling people apart.
  2. Check that it stores no ID in the browser and no IP address on the server.
  3. Install it, and take the old analytics tool out of your cookie banner.

You still see how many came, where they came from, what they read and which goals they reached. That's how Okidoki works, and How we count explains every step.

If you keep other tools

The banner applies to each tool on its own, not to the whole site. If you keep ad pixels, you still need a banner for them. But your visitor numbers no longer depend on who clicks yes.

This guide is not legal advice. More about Google Analytics in Is Google Analytics legal in the EU?

Does anonymizing IP addresses in Google Analytics remove the need for a banner?

No. Google Analytics still sets cookies, and the consent rule is about storing and reading on the device, not only about IP addresses.

Free tools for this

More guides

Ask your website. Get answers right away.

Free for 3 sites. No credit card, no cookies, no code to touch.

Or look around a live demo first, no account needed →