Blog / How the internet works /
Consent mode explained
You put a cookie banner on your site, and then your analytics numbers dropped. Of course they did: visitors who decline can’t be tracked, and some of them are now invisible. Consent mode is Google’s attempt to deal with that gap, and it is widely misunderstood. It doesn’t replace consent. It decides what your tags do after the visitor has answered.
The problem it solves
Before consent mode, you had two blunt choices. Either the Google tags (Analytics, Ads) always loaded, which could break privacy rules, or they loaded only after acceptance, which meant no data at all from anyone who said no or ignored the banner.
Consent mode adds a middle layer. Your site tells Google’s tags what each visitor has agreed to, and the tags adjust their behaviour to match.
Think of a courier with a delivery instruction. “Leave with neighbour” is a different action from “do not leave unattended”. The parcel is the same. The instruction decides what the courier does.
How it works
Your consent banner, or consent management platform, passes a few signals to the Google tags. The two main ones in common use are:
ad_storage: whether cookies related to advertising may be used.analytics_storage: whether cookies related to analytics may be used.
Each is set to granted or denied. You set the default state when the page loads (usually denied for visitors in regions with strict laws), then update it when the visitor makes a choice.
What the tags do next depends on the signals:
- Granted: tags work normally and use cookies.
- Denied: the tags don’t read or write the cookies for that purpose. In the setups where tags still load, they may send limited, cookieless signals to Google, such as that a page was visited, without identifiers that follow the person around.
What Google does with those signals
Google says it uses the cookieless signals for modelling: estimating the behaviour of people who didn’t consent, based on patterns from those who did. In Google Analytics 4, that can fill some gaps in reports. In Google Ads, it can help estimate conversions that would otherwise be lost.
Be careful here, though. Modelled data is an estimate, and it usually has conditions, such as needing enough data volume before it’s switched on. It won’t magically restore the numbers you had before you added a banner.
What it is not
This part matters most.
- It’s not a consent banner. You still need one that collects valid consent, as covered in cookie banners: what the law asks for.
- It’s not a legal shield. Whether sending limited signals before consent is acceptable depends on the law where your visitors are and on how your lawyers read it. Some organisations choose to block tags completely until consent. Others accept the cookieless pings.
- It doesn’t affect non-Google tools unless they have their own integration.
- It’s not a way of getting around a “no”. If a visitor refuses, the intent is that you respect it.
Setting it up, in outline
You can do it a few ways:
- With a consent management platform that supports it, which sends the signals for you. For most small sites, this is the easiest route. Look for an option mentioning Google consent mode.
- With Google Tag Manager, where consent settings sit on each tag and you can require particular consent states before it fires.
- With code, setting the defaults before the tags load and updating them after the choice. This is what the platforms do behind the scenes.
Whichever you pick, the order matters: the default consent state has to be set before the Google tags load, or they’ll fire with the wrong state.
How to test it
- Use Google Tag Manager’s preview mode, or the tag assistant tools, to see which consent states are set and how each tag responded.
- Load the site in a private window and decline everything. Watch what network requests go out and which cookies get stored.
- Accept everything and check that data flows as usual.
- Check the consent state changes when a visitor changes their mind through the banner link.
If something looks off, the culprit is usually timing: tags firing before consent defaults were set.
What changes in your reports
Expect these:
- Lower measured traffic and conversions from visitors in strict-consent regions, because fewer accept.
- Some modelled data in GA4 if conditions are met, which is labelled and not exact.
- Differences between GA4 and your server logs or sales data. That gap was always there, and it gets wider.
If you read analytics for decisions, treat the numbers as directional. Use sales and orders from your shop as the reliable anchor.
Who needs this
- A site with European or UK visitors using Google Analytics or Google Ads: very likely worth doing.
- A small site with mostly local visitors where no strict consent rule applies: possibly not required, though a consent-aware setup is tidy.
- Anyone running Google Ads and remarketing: more relevant, since conversion measurement depends on it.
If you’re unsure, begin with a simple cookie banner that really blocks scripts, and add consent mode when your consent tool supports it.
Key takeaways
- Consent mode tells Google tags what a visitor has agreed to, so tags can adapt.
- The main signals are
ad_storageandanalytics_storage, either granted or denied. - Denied states can still produce limited cookieless signals and modelled estimates.
- It doesn’t replace a proper consent banner or settle legal questions.
- Set defaults before tags load, then test in preview and private windows.
Related reading
- Cookie banners: what the law asks for
- AI crawlers explained: GPTBot, Google-Extended and the rest
- Caching explained: browser, server and CDN
Open your analytics and compare traffic before and after you added a banner. Did you lose visits, and by how much?