Consent mode v2: what it is and how to set it up

GuideKovumoUpdated 2026-11-269 min read

Short answer

Consent mode v2 is how your site tells Google tags whether a visitor agreed to analytics and advertising. It adds two signals, ad_user_data and ad_personalization, to the older ad_storage and analytics_storage. If you advertise to visitors in the EEA or the UK with Google Ads, you need it: without the signals, conversion measurement and remarketing for those visitors degrade. Set denied defaults before any tag loads, update them from your cookie banner, and check the result in Tag Assistant.

  1. What consent mode v2 is
  2. Who needs it
  3. Basic vs advanced consent mode
  4. Set it up with Google Tag Manager
  5. LinkedIn, Meta and other non-Google tags
  6. Check that it works
  7. What changes in your GA4 reports
  8. FAQ

What consent mode v2 is

Consent mode is a Google API that passes the visitor's consent choice to every Google tag on the page: the Google tag for GA4, Google Ads conversion tags and Floodlight. Each tag then adjusts what it stores and sends. Version 2 added two signals that Google requires since March 2024 for traffic from the European Economic Area.

SignalControls
analytics_storageCookies used for analytics, such as the GA4 client ID
ad_storageCookies used for advertising, such as the Google Ads click ID
ad_user_data v2Whether user data can be sent to Google for advertising
ad_personalization v2Whether data can be used for personalised ads and remarketing

Who needs it

You need consent mode v2 if visitors from the EEA or the UK reach your site and you use Google Ads conversion tracking, remarketing audiences or GA4 data in Google Ads. Google's EU user consent policy requires the consent signals for those visitors. A B2B site that runs only GA4 can still use it: in advanced mode GA4 receives cookieless pings from visitors who decline and, with enough traffic, models part of the missing data.

Consent mode does not replace a cookie banner. The banner collects the choice; consent mode passes it on to Google tags.

Basic vs advanced consent mode

BasicAdvanced
Google tags before a choiceNot loadedLoaded with everything denied
When consent is deniedNo data is sentCookieless pings without identifiers are sent
Conversion modelling in Google AdsGeneral model onlyAdvertiser-specific model
Behavioural modelling in GA4Not availableAvailable once traffic thresholds are met
Setup effortLowerHigher; needs careful tag order

Basic is the safer start for a small B2B site: nothing runs until the visitor agrees. Advanced recovers more data but needs enough traffic before GA4 models anything. Google's current thresholds are listed in its behavioural modelling documentation; most small B2B sites do not reach them.

Set it up with Google Tag Manager

1. Set denied defaults before anything else

The default command has to run before any Google tag. Most consent banners with a GTM template (Cookiebot, CookieYes, Usercentrics, OneTrust and others) do this when you add their tag on the Consent Initialization – All Pages trigger. Without a template, the code looks like this:

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
  ad_storage: 'denied',
  ad_user_data: 'denied',
  ad_personalization: 'denied',
  analytics_storage: 'denied',
  wait_for_update: 500
});

2. Update the signals when the visitor chooses

gtag('consent', 'update', {
  analytics_storage: 'granted',
  ad_storage: 'denied',
  ad_user_data: 'denied',
  ad_personalization: 'denied'
});

Map each banner category to the signals: an "analytics" choice grants analytics_storage; a "marketing" choice grants the three ad signals. Store the choice and send the same update on every page view.

3. Turn on consent overview in GTM

In GTM, open Admin → Container settings and enable consent overview. The shield icon in the Tags list then shows which consent checks each tag has. Google tags have built-in checks; every other tag needs additional consent set by hand.

4. Choose basic or advanced

For basic mode, fire the Google tag only after analytics_storage is granted (or load GTM only after consent). For advanced mode, let the Google tag fire on Initialization and rely on the defaults.

LinkedIn, Meta and other non-Google tags

Consent mode only controls Google tags. The LinkedIn Insight Tag, Meta Pixel, Hotjar and similar tags ignore it. In GTM, add additional consent checks to each of them (for example ad_storage for ad pixels) or fire them on a trigger that runs only after marketing consent. Read the LinkedIn and Meta Pixel guides for the exact setup.

Check that it works

  1. Open GTM Preview (Tag Assistant) and load your site in a private window.
  2. Select the first event and open the Consent tab. On-page Default should show all four signals as denied.
  3. Accept analytics only in the banner. On-page Update should show analytics_storage granted and the ad signals still denied.
  4. In the browser's network tab, filter for collect. GA4 requests carry a gcs parameter: G100 means both storage signals denied, G111 means both granted.
  5. Check that no ad pixel fires before marketing consent.

What changes in your GA4 reports

FAQ

Is consent mode v2 mandatory?

For Google Ads measurement and remarketing on EEA and UK traffic, Google requires it. It is not a law in itself: your cookie banner and its legal basis still come from privacy law such as GDPR.

Does consent mode v2 work without a cookie banner?

No. Consent mode passes on a choice; something has to ask for it. Without a banner, the defaults stay denied and Google tags send little or nothing.

What is the difference between gcs and gcd?

gcs shows the current state of ad_storage and analytics_storage. gcd is a newer parameter that encodes all four signals and whether they came from a default or an update.

Do I need consent mode if my visitors are only in the US?

Google does not require it for US traffic. If you have no EEA or UK visitors and your privacy setup does not ask for consent, you can skip it, but most B2B sites get some European traffic.

Need help setting this up?

We can configure GA4, GTM and consent mode on your existing site, test the lead events and hand over a clear measurement plan.

See GA4 + GTM setup

Related

All guides