Consent Mode v2: basic or advanced
Consent Mode can be wired two ways. In one, Google tags stay blocked until consent. In the other, they run first and send cookieless signals. Here is the difference, with sources.
In short
- Basic: Google tags are blocked until the visitor accepts. Blocked tags collect no data.
- Advanced: Google tags load before the consent dialog. If the visitor declines, they send cookieless signals.
- Google recommends advanced. That is not a requirement, and not legal advice: the choice and the responsibility are yours.
- Consent Mode shows no banner and does not store the visitor's choice. Your site has to do both.
What Consent Mode does, and does not do
Consent Mode passes the consent state to Google tags. The tags then adjust their behavior (Google's developer guide). It does not store the visitor's answer: your site has to keep it and reapply it on every page.
There are four settings. The last two came with version 2.
ad_storage: advertising cookies. When denied, no new advertising cookies are set.analytics_storage: storage tied to audience measurement.ad_user_data: sending advertising-related user data to Google.ad_personalization: personalized advertising.
Order matters
- The
defaultcommand has to run on every page, before any command that sends a measurement (config,event). Called out of order, it does not work, Google says. - If the banner loads late, the
wait_for_updateparameter sets a delay, in milliseconds, before sending. - The
updatecommand runs when the visitor chooses, including to withdraw, and before any page change: the browser may cancel a request sent during unload. - With Google Tag Manager, use
setDefaultConsentStateandupdateConsentState, not thegtagcommands, which may be processed too late.
Basic or advanced
| Basic | Advanced | |
|---|---|---|
| Google tags | Blocked until consent is granted | Loaded before the consent dialog appears |
| Before the visitor chooses | Blocked tags collect no data | Tags run, without cookies if the visitor declines |
| Cookieless pings | None | Sent when consent is declined |
| Modelled data in GA4 | No | Yes, GA4 uses the pings for modelling |
| What Google recommends | No | Yes |
In basic mode, Google states that the GA4 property gets no modelled data. Google Ads conversions then rely on a general model, with no visitor data.
What it changes for you
- In advanced, requests go to Google before the choice. They set no cookie if the visitor declines, but they are sent. Even with
ad_storagedenied, the data sent to Google includes the full page address, the documentation says. - In basic, you measure less: no signals from those who decline, no modelling in GA4.
- Whether advanced is acceptable for your visitors is a legal question. We have not checked the CNIL's position on it at the source. Do not take “Google recommends it” as an answer.
Check your own site
- Open your site in a private window and accept nothing.
- Open the Network tab of the developer tools and reload the page.
- Look for requests to googletagmanager.com and google-analytics.com. In basic, there should be none before the choice. In advanced, there are.
- Look at the site's cookies: without consent, no
_gacookie should appear.
Want a second pair of eyes? Ask for help.
rgpd.name is preparing a script with both modes: strict, the equivalent of basic, by default, and advanced as an option, with this explanation next to the setting. Hear when it is out.
Limits of this guide
- We have not measured these two modes ourselves. This guide paraphrases Google's documentation, read on 10 November 2026. It may change.
- The Google Analytics help page cited only covers
ad_storageandanalytics_storage. The two version 2 settings come from the developer guide. - We have not checked here what Google requires for personalized advertising in the European Economic Area.
- Nothing here says that one mode meets or fails the law.