How does GA4 consent mode work?.
The default state, the two storage parameters and what denied consent costs.
The short answer
Consent mode passes a visitor's cookie choice from your banner to Google Analytics and Ads, so the tags adjust what they store. The two parameters that matter for analytics are analytics_storage and, for advertising, ad_storage.12
Set the default to denied before any tag fires, then update it when the visitor chooses.2
Set the default first
Google's setup sets the default state of each parameter to denied before the tags load. The visitor's choice then updates the state.2
Consent mode can also set different defaults by region, so a visitor in one country can start with a different default from a visitor in another.2
See where your website loses revenue.
What each parameter controls
The original set has two storage parameters. Version 2 adds two more, both for advertising use.
- analytics_storage: cookies for analytics, such as visit duration.1
- ad_storage: cookies for advertising, which control Google Ads cookies and identifiers.13
- ad_user_data and ad_personalization: the newer parameters that version 2 adds for advertising use.2
What you lose when consent is denied
With analytics_storage denied, the tags can still send cookieless signals, but the reports show fewer users and fewer sessions than the real traffic. Expect totals to fall and the gap to vary by market.1
Modelled figures can fill part of the gap, but they are estimates. Label them as estimates when you compare periods.
Check it works
Accept and decline the banner in a test browser, then open the reports or DebugView and confirm the consent state changes. A banner that does not pass the choice to the tags makes the whole setup pointless.
Decline the banner in a test browser and reload the page. The consent state should read denied. If it still reads granted, the banner is not passing the choice, so fix that before you read any report.
Mistakes to avoid
Discover your website’s 3 biggest gaps for free.
Frequently asked questions
What is GA4 consent mode?
What should the default consent state be?
Why do my GA4 numbers drop after consent mode?
Does denied consent stop GA4 from tracking visitors?
Can the default consent state differ by country?
Sources
- Google Analytics Help, Consent mode reference: the analytics_storage and ad_storage parameters and what denied consent does.
- Google for Developers, Set up consent mode on websites: the default state, consent mode version 2 and region-specific defaults.
- Google Ads Help, About consent mode: how the banner passes choices to the tags.