Is Google Analytics compliant?
Google Analytics is not banned, but in the EU it is only compliant when it loads after a visitor gives consent: GDPR and the ePrivacy Directive require prior consent before Analytics sets cookies or sends data. Since 5 February 2026 the UK has allowed analytics used only to improve your own site, if visitors can object. In the US, laws like California's CCPA require you to honor opt-outs. The common failure is Analytics firing on page load, before anyone chooses. This checker scans your live site and shows you exactly when it fires.
Google Analytics detection
Detects Google Analytics (gtag.js, analytics.js, GA4) and Google Tag Manager loading on your pages.
Fires before consent
Flags the most common violation: trackers, including Analytics, that load and set cookies before the visitor makes a consent choice.
GDPR and ePrivacy
Evaluates whether your setup meets the EU rules that require consent before Analytics runs.
CCPA and opt-outs
Checks US-side duties, including honoring opt-out and Global Privacy Control signals for visitors who decline.
EU vs US behavior
Scans from EU and US servers in parallel to catch when your site tracks differently by region.
The full picture
Analytics is one tracker of many. The scan also surfaces every other tracker, cookie, and your consent banner.
How to make Google Analytics compliant
- 1
Gate Analytics behind consent
Do not let gtag.js or Google Tag Manager load until the visitor accepts. This is the step most default installs skip: in our scans, 76% of Google Analytics sites with a consent banner still sent data to Google before anyone clicked. Our guide to whether Google Analytics is GDPR compliant covers the full setup.
- 2
Turn on Google Consent Mode v2
So declined visitors get a limited, cookieless mode instead of full tracking. Our Consent Mode v2 setup guide covers the four signals and the June 15, 2026 change to how Google Ads data is controlled. It is a signal layer, not a blocker, so you still need step 1.
- 3
Honor opt-out signals
Respect Global Privacy Control and CCPA opt-outs for US visitors who decline.
- 4
Verify with a scan
Re-scan to confirm nothing fires before the choice, from both EU and US perspectives.
A consent management platform does all four automatically. ConsentStack blocks Analytics until consent, region by region, and honors reject for real. You can scan your site free above to see where it stands today.
Common questions
Google Analytics is not banned, but in the EU it is only compliant when it loads after a visitor gives consent: GDPR and the ePrivacy Directive require prior consent before Analytics can set cookies or send data. Since 5 February 2026 the UK has allowed analytics used only to improve your own site without prior consent, as long as visitors are told and can object, while a setup that also feeds advertising still needs consent. The common failure is Analytics firing on page load, before anyone has made a choice, which is exactly what this checker looks for.
In the EU, yes. You need prior consent before Analytics runs, because it stores and reads information on the device. In the UK, since 5 February 2026, analytics used only to measure and improve your own site can run without prior consent if visitors get clear information and a simple, free way to object; once the data also serves advertising, consent is needed again. In the US there is no upfront consent requirement, but state laws such as California's CCPA require you to honor opt-outs, including the Global Privacy Control browser signal, for visitors who decline.
Stop Analytics from loading until the visitor accepts, enable Google Consent Mode v2 so declined visitors get a limited cookieless mode, honor opt-out and Global Privacy Control signals for US visitors, and re-scan to confirm nothing fires before the choice. A consent management platform that blocks Analytics until consent handles all four automatically.
Consent Mode v2 is Google's API for adjusting how Analytics and Ads behave based on a visitor's consent state. When consent is denied, tags run in a limited, cookieless mode instead of full tracking. It is a signal layer, not a blocker, so you still need a consent banner to gate whether the tags load at all.
No. GA4 adds privacy controls such as built-in IP anonymization and configurable data retention, but a default GA4 install still loads and starts collecting on page load, before any consent choice. To be compliant in the EU you have to gate it behind consent yourself, usually with a consent management platform. In the UK you can skip prior consent only if Analytics is used solely to improve your site and visitors can object.
100+ happy customers
Make Google Analytics compliant.
Scan your site free to see what fires before consent, then turn on real blocking from one install. Region-aware, reject means reject.