On this page
What this issue is
Google Consent Mode is a way to tell Google tags (GA4, Google Ads, Floodlight) what the visitor has agreed to. Version 2 added two signals to the original two. The four are ad_storage, analytics_storage, ad_user_data and ad_personalization.
| Signal | What it controls |
|---|---|
| ad_storage | Whether ad cookies can be stored |
| analytics_storage | Whether analytics cookies can be stored |
| ad_user_data | Whether user data can be sent to Google for advertising |
| ad_personalization | Whether data can be used for personalised ads and remarketing |
Why it costs you leads or sales
- Visitor from EUSees the cookie banner and makes a choice
- Consent signalsNo ad_user_data or ad_personalization sent
- Google tagsCannot tell what was agreed
- Ads dataConversions and audiences limited
The banner works, but Google never receives the consent state.
Example: illustrative numbers for a site with mostly EU traffic, before and after setting up Consent Mode v2.
How to check if your site has it
Open the site from an EU or UK location
Use a private window so no earlier consent is stored. Do not click anything on the banner yet.
Open DevTools and the Network tab
Filter by
collectorgoogle-analytics. Reload the page.Look for the gcs and gcd parameters
Google requests carry
gcs(consent state) andgcd(a code for the default and updated state of each signal). If they are absent, Consent Mode is not active.Check the dataLayer
In the Console, type
dataLayerand look for aconsentdefaultentry listing all four signals, placed before the Google tag entries.Use Tag Assistant
In Google Tag Assistant, the Consent tab shows the default and updated values. Check that all four signals appear.
Click Accept, then repeat with Reject
Check that the update changes the values. Rejecting should leave the signals as denied.
How to fix it
Use a CMP template
Add your CMP's template from the Community Template Gallery, or use its own instructions. Choose one that supports Consent Mode v2.
Fire the CMP on Consent Initialization
Set its trigger to Consent Initialization - All Pages so defaults are set before other tags.
Turn on consent overview
In Admin, Container Settings, enable Enable consent overview. Check that tags have the right built-in consent checks.
Publish and test in Preview
In Tag Assistant, confirm the Consent Initialization step shows all four signals.
Pick a CMP plugin that supports v2
Check your cookie plugin's settings for a Google Consent Mode option and switch it on. The label differs by plugin.
Avoid loading Google tags twice
If a Google tag plugin and GTM both load GA4, remove one so consent is not bypassed.
Clear caches
Purge page and CDN caches so the default consent code appears in the page head.
Use Customer Privacy settings
In Settings, Customer privacy, set up the cookie banner. Shopify's Google & YouTube app and Customer Events respect this.
Or install a CMP app that supports v2
Pick a Shopify app that states Consent Mode v2 support and follow its setup.
Check hardcoded tags
Tags pasted into theme.liquid do not follow the banner. Move them to Customer Events or GTM.
Add the CMP script first
In Site settings, Custom code, Head code, place the CMP script above GTM or other Google tags.
Set defaults in the head
If your CMP does not do this, add the default consent snippet below before the tags.
Publish and test
Check the result on the live domain, as custom code does not run in the Designer.
Use the built-in banner or a CMP
In Settings, Cookie banner, set up the banner. Check Wix's marketing integrations for Consent Mode details.
Add custom code for a third-party CMP
In Settings, Custom code, add the CMP script to the head and set it to load on all pages.
Set up the cookie banner
In Settings, Cookies and visitor data, enable the banner. Its coverage of Consent Mode can depend on your template and plan, so verify it.
Or inject a CMP in Code Injection
Put the CMP script at the top of the Header field, above any Google tags.
Add the CMP in tracking code
In Sites, Settings, add the CMP script and default consent code to the header tracking code of the site and funnels.
Repeat for each funnel
Funnels and websites have separate header code, so add it to each one.
Set defaults before any Google tag
Put the default snippet as the first script in the head.
Send an update on choice
Call gtag('consent', 'update', {...}) from your banner's accept, reject and save handlers.
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
'ad_storage': 'denied',
'analytics_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'wait_for_update': 500
});
</script>gtag('consent', 'update', {
'ad_storage': 'granted',
'analytics_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted'
});How to confirm it's fixed
- A consent default entry with all four signals appears in the dataLayer before any Google tag
- Tag Assistant's Consent tab shows the default state as denied for EU/UK visitors
- After Accept, the update shows granted values and Google requests carry gcs and gcd
- After Reject, signals stay denied
- The Google Ads or GA4 consent warning clears (it can take a few days)
- Checked again after clearing caches and in a private window
Without Consent Mode v2
- Banner shows, but Google gets no consent state
- No gcs/gcd on Google requests
- Ads and audience data limited
With Consent Mode v2
- Defaults set to denied before tags load
- Update sent on accept or reject
- Google tags respect the visitor's choice
How to prevent it happening again
- Re-test consent after changing your CMP, theme, GTM container or tag plugins
- Keep the CMP on the Consent Initialization trigger
- Review the CMP's template or plugin updates for Consent Mode changes
- Never add Google tags directly in the theme next to GTM
- Test from an EU location, not only from your office
- Run a scheduled check so a silent change is caught within a day
How FunnelGuard handles this
Questions people ask
What is Google Consent Mode v2?
Consent Mode v2 is a Google feature that lets your cookie banner tell Google tags what a visitor agreed to. It uses four signals: ad_storage, analytics_storage, ad_user_data and ad_personalization. The two newer ones cover sending user data and personalised ads.
Why is my Google Ads account saying consent signals are missing?
It usually means your site is not sending Consent Mode v2 signals for EEA or UK visitors. Common causes are a CMP without v2 enabled, defaults set after tags load, or tags added outside GTM. Check the dataLayer and the gcs and gcd parameters.
How do I check if Consent Mode v2 is working?
Open your site in a private window, then look in Tag Assistant's Consent tab and the Network tab. You should see a default consent state with all four signals and gcs and gcd parameters on Google requests. Click Accept and Reject to confirm the values update.
Do I need Consent Mode v2 if I have a cookie banner?
A banner alone is not enough for Google. If you serve ads or measurement to EEA or UK visitors, the banner must pass its choices to Google tags through Consent Mode. Otherwise Google has no consent information.
Should the default consent state be granted or denied?
For EU and UK visitors, set the default to denied and update to granted only after the visitor agrees. Defaulting to granted can breach consent rules. Set the default before any Google tag runs.
Does Consent Mode v2 replace a cookie banner?
No. It only passes the visitor's choice to Google tags. You still need a banner or CMP to collect that choice lawfully.
Can FunnelGuard detect a missing Consent Mode v2 setup?
Yes. FunnelGuard's consent_mode_v2 check looks for the signals when a robot visitor loads your site from the EU or US. If they are missing, it raises one alert after a second-region re-check.
Related issues
- OPS-319No cookie banner for EU/UK visitorsFix guide
- OPS-320Tracking fires before consentFix guide
- OPS-324Consent not honoured after reject (pixels still fire)Fix guide
- OPS-328CMP script failing so no tags load at allFix guide
- OPS-327Consent records not stored (no proof)Fix guide
- OPS-321Banner has no Reject button on first layerFix guide