Blog · 2026-11-18
Does Google Analytics need cookie consent?
It depends where your visitors are, and how you've set analytics up. That's an unsatisfying answer, so here's the useful version. This is general information, not legal advice. If it matters for your business, ask a lawyer who knows your market.
The short version by region
- European Union and United Kingdom. Privacy rules about cookies and similar technologies generally require consent before storing or reading non-essential data on a visitor's device, and analytics is usually treated as non-essential. Some regulators have said that tightly configured, privacy-friendly analytics may be exempt, and they don't all agree.
- United States. There's no single national cookie-consent rule. Several states give residents rights to opt out of the sale or sharing of their data and of targeted advertising, which can affect how analytics and ad tools are set up. Requirements differ by state.
- Elsewhere. Many countries have their own rules, often modelled on one of the above.
Why the answer is often more complicated than analytics itself
Analytics tools often share data with advertising products, or sit next to tags that do. The question is rarely just "do I use analytics", but "what is every script on this page doing, and when does it start?"
What you can check yourself
- Does your analytics tag load before the visitor has made any choice?
- Does it keep loading after they click Reject?
- Is it the only analytics tool, or are there others?
Whatever the rules say in your case, those three questions tell you whether your site does what your banner says. We walk through how to test them in how to check if your cookie banner actually works.
See what your site does
TrackerGrade loads your page like a first-time visitor and shows which analytics and advertising tags run before any click and after Reject. It's free, takes about 10 to 30 seconds, and gives you facts to bring to whoever advises you on the rules.