Google Consent Mode v2 explained

What Google Consent Mode v2 is, who needs it, what the four signals do and how basic mode differs from advanced mode. Plus how to set it up and check that it works.

Last checked on 24 November 2026

In short

  • If you use Google Ads or Google Analytics for visitors from the EEA, the UK or Switzerland, Google expects Consent Mode v2.
  • Consent Mode passes the choice from your cookie banner to Google. It does not replace the banner.
  • The four signals are ad_storage, analytics_storage, ad_user_data and ad_personalization.
  • In basic mode nothing is sent to Google until the visitor consents.

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

  1. 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.
  2. 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.
  3. 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.
  4. Map your categories: statistics to analytics_storage; marketing to ad_storage, ad_user_data and ad_personalization.
  5. 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.
  6. 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.
  7. Test in Preview mode and publish the container.

With gtag.js, without Tag Manager

  1. 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.
  2. 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.
  3. 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

  1. 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.
  2. 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.
  3. 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

Frequently asked questions

Is Google Consent Mode v2 required by law?

No. The law requires consent for non-essential cookies; Consent Mode is how Google wants that consent passed to its tags. Under its EU user consent policy, Google asks advertisers to collect consent from users in the EEA (and also the UK and Switzerland) and to send consent signals. Without them you lose remarketing audiences and much of your conversion measurement for those users.

Does Consent Mode v2 replace my cookie banner?

No. Your cookie banner asks the visitor for consent and blocks tags until then; Consent Mode tells Google's tags what the visitor chose. You need both.

Do I need Consent Mode if I only use Google Analytics?

Google requires consent signals for EEA users whose data is used in linked advertising products, such as audiences shared with Google Ads. If your Analytics property is not linked to any advertising product, it is not strictly required by Google, but it is still the standard way to make GA4 respect the visitor's choice and to get modeled data for visitors who decline.

How do I check whether Consent Mode v2 works?

Open your site in Google Tag Assistant, accept or reject in your banner and look at the Consent tab of a tag. The default state should be denied for all four signals, and the update should match the visitor's choice. Google Ads can take up to 48 hours, sometimes longer, to show the consent status.

Does Cookie Confirm support Google Consent Mode v2?

Yes. Cookie Confirm sends the visitor's choice to Google Consent Mode v2 with all four signals, and also works through our Google Tag Manager template.

Which trigger do I use for Consent Mode v2 in Google Tag Manager?

Consent Initialization – All Pages, for your cookie banner's tag (with Cookie Confirm: the tag from the "Cookie Confirm CMP" template). That trigger fires before all other tags, so the default "denied" is in place before Google Ads or Google Analytics load. Your Google tags keep their usual triggers.

Do I need a developer to set up Consent Mode v2?

Usually not. With a CMP template in Google Tag Manager, or the Cookie Confirm CMP plugin for WordPress, it is a matter of settings, not code. Only if you set it up with gtag.js yourself do you add the default and update commands to the code of your site.

This guide is general information, not legal advice. We check it regularly, but laws and guidance change. Not sure about your situation? Ask a lawyer.

Enjoy the first 7 days completely free

Create a free account and see if Cookie Confirm is the right fit for you. Live in 5 minutes.

  • No credit card required
  • €7.95 per month after
  • Plug & play installation
Start my free trial

5.0/5 5,000+ websites

Enjoy the first 7 days completely free

No credit card required

Start free trial