Google Analytics on your website.
Does it measure before anyone is asked?
Google Analytics 4 sets the cookies _ga and _ga_… and sends to google-analytics.com as soon as the script loads. Whether it loads before the choice depends not on Google but on how it is built in.
Your account after the first check

Sample shop. Every point opens its fix with the steps for your tool.
Where Analytics loads past the banner
The banner only holds Google Analytics back if it knows the code. Usually it is built in a second time somewhere the banner knows nothing about.
- 01
gtag.js hard-coded in the theme
The code with googletagmanager.com/gtag/js?id=G-… sits in the theme header or in a “code in head” field. It loads with every page, regardless of the banner.
Art. 5(3) Directive 2002/58/EC
- 02
A plugin or app adds its own tag
A statistics plugin, a shop extension or the analytics setting of a site builder adds a second Google tag. One waits for consent, the other does not.
Art. 5(3) Directive 2002/58/EC
- 03
GA4 tag in Tag Manager without a condition
If the GA4 tag in Google Tag Manager fires on “Initialization – All Pages” without a consent check, it loads before the choice, even when the banner itself is set up correctly.
Art. 5(3) Directive 2002/58/EC
- 04
Consent Mode with default “granted”
If the default is “granted” or the region does not cover your country, GA4 sets cookies as if the visitor had agreed.
Art. 5(3) Directive 2002/58/EC
Step by step
Measure
Open the page in a private window, developer tools (F12), Network tab, filter for “collect” and reload without touching the banner. Under Application, Cookies look for _ga. The report does this for every page it reads and names where the tag comes from.
One installation only
Find every place where G-… appears (theme, plugins, apps, Tag Manager) and keep only one, ideally in Tag Manager or the banner tool.
Load only after consent
In the banner tool assign Google Analytics to the statistics category; in Tag Manager tie the GA4 tag to consent for analytics_storage. How this works per tool is in the guides below.
Check Google Signals
If you do not need advertising audiences from Analytics, turn off data collection for Google Signals under Admin, Data collection and modification, Data collection; those requests then disappear.
Measure again
Check again without consent and after “Reject”. Only when no _ga cookie appears and no collect request with gcs G111 is in the list does Analytics no longer measure before the choice.
Questions
Does Google Analytics 4 set cookies?
Yes, by default _ga and _ga_ followed by the measurement ID, lasting up to two years. Before the choice they only appear if the tag loads without waiting for consent, or Consent Mode reports “granted”.
Is IP anonymization enough?
GA4 no longer has this setting. Either way, the tag still loads with the page, sets cookies and connects the browser to Google. The measurement shows what happens before the choice.
What about advanced Consent Mode?
There the tag loads right away and, on “denied”, sends measurement requests without cookies. How to read gcs and gcd is in the <a href="/en/guides/google-consent-mode-v2">Consent Mode v2</a> guide.
How does this work in my banner tool?
See the guides for <a href="/en/guides/google-tag-manager-consent">Google Tag Manager</a>, <a href="/en/guides/cookiebot-not-blocking">Cookiebot</a>, <a href="/en/guides/usercentrics-not-blocking">Usercentrics</a>, <a href="/en/guides/borlabs-cookie-not-blocking">Borlabs Cookie</a>, <a href="/en/guides/real-cookie-banner-not-blocking">Real Cookie Banner</a>, <a href="/en/guides/complianz-not-blocking">Complianz</a> and <a href="/en/guides/shopify-cookie-banner-check">Shopify</a>.
What a scan shows
It opens your website without consenting, also reads subpages, then clicks Reject and measures again; it also reads gcs and gcd of every Google request. If Google Analytics loads in advance, the report names the page, where the tag comes from and the fix for your banner tool. Right away for your website: cookie check.
As of 15 November 2026. We name the reference so you can read it yourself; this is not legal advice.
More guides
- Cookies before consent: what ePrivacy requires
- Price information in web shops: unit price and shipping
- European Accessibility Act checker for web shops (WCAG)
- Cookiebot not working or not blocking?
- Usercentrics not blocking?
- Borlabs Cookie not blocking?
- Real Cookie Banner not blocking?
- Complianz not blocking?
- Check your cookie banner yourself in three steps
- Google Fonts self-hosted but still loading?
- Dark patterns in online shops: five patterns and the fix
- EU withdrawal button 2026: what your shop needs
- Unit price and the “order with obligation to pay” button
- GPSR: manufacturer information in your web shop
- OneTrust not blocking cookies?
- CookieYes not blocking or not working?
- Wix cookie banner check: does it really block?
- GTM consent: fire tags only after consent in Tag Manager
- Google Maps embed and GDPR: load the map only after a click
- YouTube embed and GDPR: load the video only after a click
- Meta Pixel before consent?
- TikTok Pixel before consent?
- Hotjar before consent?
- Microsoft Clarity consent mode: check what it sends
- Google reCAPTCHA and GDPR: load it only on the form page
- HubSpot cookie banner not showing?
- Shopify cookie banner check: does it really block?
- Google Consent Mode v2 checker: test and set it up
- Cookie checker for websites: free, with the reject test
- Security headers check: free website security checker