What is Google Consent Mode v2?
Google Consent Mode is a link between your cookie banner and Google's tags, such as Google Ads, Google Analytics 4 and Floodlight. Your banner tells Google what the visitor chose, and the tags adjust their behavior: with consent they work as normal, without consent they do not use cookies or identifiers for advertising or analytics.
Google added two new signals in November 2023, which is why people speak of "v2". The two new signals cover whether user data may be sent to Google for advertising, and whether ads may be personalized. Google uses them to enforce its EU user consent policy, which applies to users in the European Economic Area, the UK and Switzerland.
Who needs it?
You need Consent Mode v2 if you have visitors from the EEA (the EU plus Iceland, Liechtenstein and Norway), the UK or Switzerland, and you:
- advertise with Google Ads and measure conversions or use remarketing;
- use Google Analytics 4 and share its data or audiences with Google Ads;
- use Floodlight or other Google Marketing Platform tags.
Since March 2024, Google only builds remarketing audiences and uses ad measurement for EEA users if it receives valid consent signals. Without them, those visitors drop out of your audiences and much of your conversion data disappears.
If you use no Google service for advertising or statistics at all, you don't need it.
The four signals
| Signal | What it controls | Banner category |
|---|---|---|
| ad_storage | Cookies and identifiers for advertising | Marketing |
| analytics_storage | Cookies for analytics, such as visit duration | Statistics |
| ad_user_data | Sending user data to Google for advertising | Marketing |
| ad_personalization | Personalized ads and remarketing | Marketing |
Google also knows three optional signals (functionality_storage, personalization_storage and security_storage), but the four above are the ones Google checks.
Before the visitor makes a choice, all four should be set to "denied". Only after consent does a signal switch to "granted" for that category. This default must be set before any Google tag loads; otherwise a tag may read cookies before it knows the visitor's choice.
Basic or advanced mode?
- Basic mode: Google's tags are blocked until the visitor interacts with the banner. If the visitor declines, nothing is sent to Google, not even the consent status. Google fills the gap with a general conversion model.
- Advanced mode: the tags load straight away with consent set to "denied". Without consent they send cookieless pings to Google, which Google uses for a more detailed, advertiser-specific model of the missing conversions.
Advanced mode gives you better measurement, but data is sent to Google even when the visitor declines. Whether that is allowed without consent is not settled. In its 2024 guidelines on the technical scope of the ePrivacy Directive, the EDPB says that instructing a visitor's browser to send information, for example through pixels or scripts, can fall under the cookie rule even when no cookie is set. If in doubt, choose basic mode.
And IAB TCF?
Google Consent Mode v2 is not the same as the IAB Transparency & Consent Framework (TCF). Consent Mode is what you need when you advertise with Google Ads or measure with Google Analytics. TCF is only required when you show ads from others on your own site, for example via Google AdSense. More in IAB TCF: who needs it?
How to set up Consent Mode v2
Most websites set up Consent Mode v2 with a cookie banner (a consent management platform, or CMP) that passes the visitor's choice to Google through Google Tag Manager. Without Tag Manager you can do the same with gtag.js. Whichever route you take, the order is always the same: first the default ("denied"), then Google's tags, then the update once the visitor has chosen.
Step by step in Google Tag Manager
- Add your banner's template. In Tag Manager, create a new tag and search the Community Template Gallery for your cookie banner. The templates of Google's featured CMPs use Google's consent APIs, so the signals arrive in the right format.
- Fire it on Consent Initialization – All Pages. Every web container has this trigger, and it fires before all other tags, so the default is in place before any Google tag loads. Use it only for your banner, not for other tags that simply need to fire early.
- Set the default to "denied" for all four signals, at least for visitors from the EEA, the UK and Switzerland. Defaults can differ per region (ISO codes such as DE or US-CA); a default without a region applies to everyone else, and the most specific rule wins. Make sure every signal follows the same regional rule.
- Map your categories: statistics to analytics_storage; marketing to ad_storage, ad_user_data and ad_personalization.
- Check the consent settings of your tags. Google Ads, Google Analytics and Floodlight tags have built-in consent checks and adjust themselves. For other tags, go to Advanced Settings → Consent Settings and choose "Require additional consent for tag to fire". Turn on "Enable consent overview" under Admin → Container Settings to see at a glance which tags have no consent settings yet.
- Choose basic or advanced mode (see above). For basic mode, also make your Google tags require additional consent, so they only load once the visitor agrees. In advanced mode they load straight away and rely on their built-in checks.
- Test in Preview mode and publish the container.
With gtag.js, without Tag Manager
- Set the default first. Put a gtag('consent', 'default', …) command in the head of every page, above the Google tag, with ad_storage, analytics_storage, ad_user_data and ad_personalization set to 'denied'. Google requires the default to come before any config or event command.
- Give a banner that loads later some time. If your banner loads asynchronously, add wait_for_update with a number of milliseconds, for example 500, so the tags wait for the visitor's choice.
- Send the update after the choice. When the visitor accepts or rejects, your banner calls gtag('consent', 'update', …) with 'granted' for the accepted categories. Store the choice and send it again on every following page, and also when the visitor changes or withdraws consent.
Inside Tag Manager, use a template instead of these gtag commands: Google warns that they may be processed too late there.
With Cookie Confirm
- Google Tag Manager: add a tag from the "Cookie Confirm CMP" template with the trigger Consent Initialization – All Pages, and publish the container.
- WordPress: install the "Cookie Confirm CMP" plugin (Plugins → Add plugin) and choose in its settings whether you use Google Tag Manager, turn on Consent Mode and pick which scripts to hold back until consent.
- Then run the integration status check in your dashboard.
The banner sets the defaults, maps your categories to all four signals and applies geographic rules per country, so steps 3 and 4 are done for you. Rather not do it yourself? Our free Setup Service makes your site compliant within 24 hours after you give us access.
How to check it
- In Tag Assistant or Tag Manager's Preview mode. Open your site in Google Tag Assistant, or click Preview in Tag Manager. Select the first Consent event: in a tag's Consent tab, the On-page Default column should show denied for all four signals. Accept in your banner and the latest Consent event should show granted under On-page Update; reject and they stay denied. The Tags tab shows which tags fired and which were blocked.
- In Google Ads. Go to Goals → Conversions → Summary, click a website conversion action and open the Diagnostics tab. You should see "Consent mode is implemented", or "Consent mode is implemented and modeling is active" once there is enough traffic for modeling. The status can take 48 hours to appear, in some cases up to two weeks.
- In Google Analytics 4. Under Admin → Data collection and modification → Consent settings you see per data stream whether the advertising and analytics signals arrive. After a change this takes 48 to 72 hours to update.
An empty Consent tab usually means Consent Mode isn't on the page. The message that a tag read the consent state before a default was set means your banner loads too late.
Sources
- Google: Consent mode overview
- Google Ads Help: Updates to consent mode for traffic in the EEA
- Google Ads Help: Consent mode reference
- Google Analytics Help: Verify and update consent settings
- Google: Troubleshoot consent mode with Tag Assistant
- Google: EU user consent policy
- EDPB: Guidelines 2/2023 on the technical scope of Art. 5(3) ePrivacy Directive
- Google: Set up consent mode on websites
- Tag Manager Help: Tag Manager consent mode support
- Google Ads Help: Verify consent mode implementation