How to add Consent Mode v2 with a cookie banner

Google Consent Mode v2

Step-by-step: paste your privacy policy URL

  1. Confirm you run Google tags (Ads, GA4, or Floodlight) that need Consent Mode v2 signals.
  2. Generate a hosted cookie banner script URL configured for Consent Mode v2 defaults.
  3. Install the script in your site head before other marketing tags fire.
  4. Use Google Tag Assistant / DebugView to verify consent updates when a user accepts or rejects.
  5. 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.