Implement Google Consent Mode v2 for Google Ads and Analytics tags

domain: advertising · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Load a Consent Mode default state before any other tag fires, using an early trigger (e.g. GTM's consent-initialization trigger) or an inline gtag('consent','default', {...}) call at the top of the page
  2. Set all four v2 signals — ad_storage, analytics_storage, ad_user_data, ad_personalization — to 'denied' by default for regions requiring opt-in (e.g. EEA/UK), adjusting regional defaults as appropriate elsewhere
  3. Integrate a Google-certified Consent Management Platform (CMP) to capture the user's actual choice and call gtag('consent','update', {...}) with the four signals once the user responds
  4. Choose Basic (tags don't fire without consent) or Advanced (tags fire in a cookieless/anonymized mode without consent) implementation based on your data needs
  5. Verify in Tag Assistant / GTM preview that consent changes propagate to Google Ads and GA4 tags, and that ad_user_data specifically gates whether hashed PII reaches Google for Enhanced Conversions
  6. Confirm Consent Mode v2 via a certified CMP is active before serving ads in the EEA, since Google requires it there

Known gotchas

Related routes

Implement Google Consent Mode v2 with gtag.js default and update commands for an EEA-targeted site
developers.google.com/tag-platform · 6 steps · unrated
Integrate Transcend's airgap.js consent manager to block tags until consent is granted and sync Google Consent Mode v2
docs.transcend.io · 6 steps · unrated
Pass IAB Global Privacy Platform (GPP) consent strings into Google Ad Manager ad requests for US state privacy compliance
support.google.com/admanager · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans