Analytics guide

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

Starting point
2core storage parameters: analytics_storage and ad_storage1
v2the current version, which adds two parameters to the original set2

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

Consent mode in four steps: default denied before tags load, cookies stay off, the visitor chooses, and the tags adjust what they store.
The order matters: the default is set before any tag loads, then the visitor's choice updates the state.

See where your website loses revenue.

Get a free Traffic Scan →

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
Parameter tree: analytics_storage and ad_storage form the original set, and version 2 adds ad_user_data and ad_personalization.
The storage parameters by version: two in the original set, and two that version 2 adds for advertising use.

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.

Example

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

  • A default of granted: the tags store before the visitor chooses.2
  • A banner that does not update the state: the choice is ignored.2
  • Comparing before and after without a note: the consent change alone moves the numbers.1

Discover your website’s 3 biggest gaps for free.

Get a free Traffic Scan →

Frequently asked questions

What is GA4 consent mode?
A way for your cookie banner to pass the visitor's choice to Google Analytics and Ads, so the tags adjust what they store.
What should the default consent state be?
Denied, set before the tags load. The visitor's choice then updates the state.
Why do my GA4 numbers drop after consent mode?
Denied consent reduces what is stored, so the reports show fewer users. Note the change when you compare periods.
Does denied consent stop GA4 from tracking visitors?
Not fully. With analytics_storage denied, the tags can still send cookieless signals, but the reports show fewer users and sessions than real traffic.
Can the default consent state differ by country?
Yes. Consent mode can set different defaults by region, so visitors in different countries can start from different states.

Sources

  1. Google Analytics Help, Consent mode reference: the analytics_storage and ad_storage parameters and what denied consent does.
  2. Google for Developers, Set up consent mode on websites: the default state, consent mode version 2 and region-specific defaults.
  3. Google Ads Help, About consent mode: how the banner passes choices to the tags.