Enable Google Consent Mode v2, wire GTM, and verify tag signals with CookieShift.

CookieShift sends Google Consent Mode v2 signals so Google tags respect marketing and analytics choices before cookies are set.
Overview
Consent Mode v2 tells Google Ads, Analytics, and Tag Manager how to behave based on your banner categories. CookieShift maps your consent categories to ad_storage, analytics_storage, ad_user_data, and ad_personalization.
Why it matters
Without Consent Mode, Google tags may fire in restricted regions before consent — risking regulatory exposure and inaccurate conversion modeling. v2 is required for EU/UK traffic and recommended globally.
Setup
- Open Consent Setup → Google Consent Mode v2 for your property.
- Enable Consent Mode and confirm default denied state matches your legal basis.
- Install CookieShift before GTM or gtag in
<head>(see Installation). - In GTM, use Consent Initialization tags or rely on CookieShift’s automatic
gtag('consent', 'default', …)when configured. - Publish the banner and run a test page load in Tag Assistant.
Examples
| Scenario | Expected signal |
|---|---|
| User accepts analytics only | analytics_storage: granted, ads denied |
| User rejects all | All storages denied |
| US CCPA “Do Not Sell” | Ads personalization denied per your mapping |
Troubleshooting
- Tags fire before banner — Move the CookieShift script above GTM; clear cache.
- Consent not updating — Confirm property
siteIdmatches the domain you are testing. - GTM preview shows denied forever — Accept categories in the banner and reload; check category mapping in Consent Setup.
Best practices
- Test with Google Tag Assistant after every banner publish.
- Document your category → Consent Mode mapping for audits.
- Pair with Additional Consent Mode when running Google Ads with ATP vendors.