PRE-CONSENT DIAGNOSIS
Stop www.google-analytics.com from firing before Accept
A practical guide based on what fired before your consent banner was accepted. Fix the trigger or CMP order, verify Consent Mode v2, then monitor the domain so future GTM publishes do not reintroduce the leak.
This is an example. Open this page from a scan report, with the "How to fix" link on a pre-consent issue, to see your own findings. Scan your website
- Site
- your-domain.com
- Issue
- Third-party ad or cookie request fired before clicking Accept
- Host
- www.google-analytics.com
- Path
- /g/collect
- Observed gcs
- G111
- Cookie set before Accept
- _ga
Why this happens
A tag or third-party script loaded during the initial page load before the visitor clicked Accept. Under GDPR and ePrivacy rules, advertising pixels and non-essential tracking cookies must wait for an explicit opt-in.
Most leaks come from one of three places: a GTM tag firing on Initialization or Page View without a Consent Check, a hardcoded script in the page template or CMS plugin that bypasses GTM, or a CMP that fires its consent-granted event too early.
The steps
Who usually does what.
- 1
Trace the initiator in GTM Preview or DevTools
Analytics specialistOpen the site in a fresh incognito window without clicking Accept. Use the Network tab Initiator column and GTM Preview to see whether the request comes from a GTM tag, a CMS plugin, or hardcoded HTML. - 2
Set Consent Mode v2 defaults before any tag fires
Developer or analytics specialistEnsure your CMP or consent default command runs on Consent Initialization before Google tags load, with ad_storage, analytics_storage, ad_user_data, and ad_personalization set to denied by default. - 3
Gate non-Google tags behind CMP consent checks
Analytics specialistEnable Consent Overview in GTM and require explicit consent (such as ad_storage or analytics_storage) on third-party pixels like Meta, TikTok, LinkedIn, and ad network scripts. Remove duplicate hardcoded pixels. - 4
Verify the Accept transition and Set-Cookie headers
Analytics specialistConfirm no tracking cookies are set before Accept, and that clicking Accept triggers a consent update so gcs moves from G100 to G111 (or G101/G110 depending on choices). Check server-side GTM clients if cookies are set in HTTP responses. - 5
Re-scan and monitor daily
EveryoneRun a fresh scan on isblocked.fyi to confirm zero pre-consent violations, then turn on daily monitoring so a future GTM publish or CMP update cannot quietly reintroduce the leak.
6 things to get right: checklist
Make sure to take care of all these points before closing the issue.
Consent and law
Consent default runs before Google tags
If gtag or GTM loads before the CMP sets default denied states, the first hit fires with granted storage (G111) before the visitor touches the banner.
No duplicate hardcoded pixels outside GTM
Fixing triggers inside GTM does nothing if Meta, Google Ads, or an affiliate script is still injected by Shopify, WordPress, or a theme header.
Distinguish cookieless G100 pings from real leaks
Consent Mode v2 Advanced sends cookieless G100 requests before Accept. Do not block G100 pings by mistake if you rely on Google conversion modeling, and verify they set no cookies.
Consent update fires on Accept and persists across pages
Clicking Accept must fire gtag("consent", "update", ...) immediately and store the choice so the next page view starts with the visitor's granted state.
Server-side GTM respects consent before setting cookies
A first-party sGTM endpoint can still write Set-Cookie headers (_ga, _fbp, FPID) before Accept if the server client or tag ignores the incoming gcs/gcd consent state.
Test in a clean EU browser session after every publish
Always test in a fresh incognito window from an EU region. Cached consent cookies hide leaks during normal browsing.
Keep watching for consent regressions
A single GTM publish, new marketing pixel, or CMP update can break consent overnight.
Everything above makes a request hard to match. None of it stops a blocker from doing the one thing it can always do: block the whole host. After that the blocker no longer looks at the path, the payload or the encryption. It only looks at where the request goes.
A rule matches a path or a file name
Solved by moving it and encrypting the path.
A rule matches the parameters or the body
Solved by encrypting the payload, differently every time.
A blocker blocks the whole host
Cannot be solved. Every request to that host is dropped, however it looks. It can only be replaced.
What works is to notice within a day and to change the host fast. A setup that is watched costs you a day. One that is not costs you the weeks until someone looks at the numbers.
With monitoring
- Day 0A blocker blocks your host
- Day 1The next check finds it and you get an email
- Day 1You move to a new host
- Day 2The scan is clear again
Without it
- Day 0A blocker blocks your host
- Week 2Someone notices the numbers drop
- Week 3The cause is found, and the move begins
- Week 4Without context, solving it takes longer
What to watch
- Your full masking setup. Once it is live, monitor it continuously so a blocked host or broken request is caught quickly.
- The host you choose. Watch it as a pattern. You get an email the day a product starts blocking it, before any scan runs.
- Your website. Domain monitoring scans it every day and finds your tagging endpoint by itself, so it also tells you when the endpoint is blocked.
Be ready to move in an hour
- Keep the host in one place of your configuration, not in many tags.
- Set a short DNS TTL on it, so a change takes minutes to spread.
- Have a second host ready, set up and tested. Switching to it should be a change of one value.
- Write down the steps and who does them. The day you need them is the wrong day to work them out.
Get help with this
You can work through this checklist yourself. Every step applies regardless of which CMP or tag manager you use.
If you want a second pair of eyes on your GTM container, need someone to fix the pre-consent leaks hands-on, or want to train your agency or in-house team on Consent Mode v2 and compliant tracking, we can work through your scan together.

Who is behind this
Mariusz Brucki
Consultant and trainer for agencies. Server-side tracking and ad blockers. Berlin, remote.
Hi, nice to meet you. I'm the founder of isblocked.fyi, and I appreciate your trust. Having worked with brands like Greenpeace and DocPlanner, I've learned what a resilient tracking setup needs for analytics and advertising. In 2025, I developed encryption technology for bypassing adblockers for analytics and tracking systems and partnered with a major server-side tracking company, TAGGRS, to roll it out to thousands of customers. I'm here to help if you do not want to work through the setup alone, or if you want someone to share the know-how. I also work with agencies to help them set up tracking safely for their customers.
Consent audit and team training
For agencies and in-house teams who want to fix pre-consent leaks themselves and prevent regressions on future GTM publishes. Bring your scan.
- Walk through your scan and trace every pre-consent request back to its exact tag or script
- Train your team on GTM consent initialization, Consent Mode v2 (gcs/gcd), and CMP gating
- Separate legitimate cookieless pings (G100) from real compliance violations
- Review your container changes live and wire daily monitoring to catch regressions
Hands-on consent implementation
We audit your GTM container, CMP configuration, and server-side tagging setup, then fix the pre-consent leaks for you.
- Gate third-party ad pixels and scripts behind verified consent triggers
- Fix Consent Mode v2 defaults and update commands so G100 transitions cleanly after Accept
- Verify no tracking cookies are set by browser tags or server-side endpoints before consent
- Deliver a clean re-scan and turn on daily regression monitoring