Consent mode v2: what it is and how to set it up
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.
- What consent mode v2 is
- Who needs it
- Basic vs advanced consent mode
- Set it up with Google Tag Manager
- LinkedIn, Meta and other non-Google tags
- Check that it works
- What changes in your GA4 reports
- 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.
| Signal | Controls |
|---|---|
analytics_storage | Cookies used for analytics, such as the GA4 client ID |
ad_storage | Cookies used for advertising, such as the Google Ads click ID |
ad_user_data v2 | Whether user data can be sent to Google for advertising |
ad_personalization v2 | Whether 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
| Basic | Advanced | |
|---|---|---|
| Google tags before a choice | Not loaded | Loaded with everything denied |
| When consent is denied | No data is sent | Cookieless pings without identifiers are sent |
| Conversion modelling in Google Ads | General model only | Advertiser-specific model |
| Behavioural modelling in GA4 | Not available | Available once traffic thresholds are met |
| Setup effort | Lower | Higher; 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
- Open GTM Preview (Tag Assistant) and load your site in a private window.
- Select the first event and open the Consent tab. On-page Default should show all four signals as denied.
- Accept analytics only in the banner. On-page Update should show
analytics_storagegranted and the ad signals still denied. - In the browser's network tab, filter for
collect. GA4 requests carry agcsparameter:G100means both storage signals denied,G111means both granted. - Check that no ad pixel fires before marketing consent.
What changes in your GA4 reports
- Fewer users and sessions than before, because visitors who decline are no longer counted (basic) or only partly modelled (advanced).
- Leads in your CRM will not match leads in GA4. The CRM counts every form; GA4 counts only consented visitors, plus any modelling.
- Lost campaign data if GA4 loads only after the visitor has left the landing page. Keep the banner on the landing page so the first
page_viewstill carries the UTMs, or traffic shows up as Direct or Unassigned.
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