How to add Consent Mode v2 with a cookie banner
Google Consent Mode v2
Step-by-step: paste your privacy policy URL
- Confirm you run Google tags (Ads, GA4, or Floodlight) that need Consent Mode v2 signals.
- Generate a hosted cookie banner script URL configured for Consent Mode v2 defaults.
- Install the script in your site head before other marketing tags fire.
- Use Google Tag Assistant / DebugView to verify consent updates when a user accepts or rejects.
- Document the banner behavior in your privacy policy and keep the script URL stable across deploys.
FAQ
Is Consent Mode v2 required?
If you serve EEA/UK users with Google advertising or measurement tags, Google expects Consent Mode v2-compatible consent signals.