CleanCMP
Login Get started
All guides

Google Tag Manager

How To Set Up Google Consent Mode v2 In Google Tag Manager

Consent Mode v2 is the bridge between your cookie banner and Google tags. The goal is simple: tell Google what the visitor has allowed before analytics or advertising tags start using optional storage.

What you are setting up

You are connecting three things: your cookie banner, Google Tag Manager, and Google's consent signals. When the page first loads, Consent Mode should start with a default state. In many European setups, optional signals start denied. When the visitor accepts or changes choices, the banner sends an update to GTM.

That update lets Google tags know whether analytics, advertising storage, ad personalization, and ad user data are allowed for that visitor.

Step 1: Start with a real cookie banner

Your banner should do more than show a message. It needs clear buttons, a preferences view, and a way to remember the visitor's choice. It should also map those choices to Consent Mode signals.

In CleanCMP, you create the site, choose the banner language, add your privacy policy URL, scan cookies, and publish the banner before installing it through GTM.

Step 2: Install the CMP tag early in GTM

In Google Tag Manager, consent setup should happen before normal tracking tags. Use the Consent Initialization - All Pages trigger for your CMP tag. This gives the banner the best chance to set default consent before GA4, Google Ads, or other tags run.

With CleanCMP, you import the GTM template, paste the CleanCMP install URL from Admin, and fire it on Consent Initialization.

Step 3: Keep your Google tags consent-aware

Your Google tags should not ignore consent. GA4, Google Ads, and Conversion Linker should run with the correct built-in consent checks. For tags that are not consent-aware, review whether they need extra consent rules or blocking.

A common mistake is adding a banner visually, but leaving old tags firing exactly as before. The banner looks correct, but the tracking setup is not actually respecting the choice.

Step 4: Test accept, reject, and custom choices

Do not only test the accept button. Test a fresh visitor, reject all, accept all, and a custom choice where analytics is allowed but marketing is denied. Check that the banner stores the choice and that GTM receives the right consent update.

CleanCMP shortcut

CleanCMP includes the banner builder, GTM install template, Consent Mode v2 mapping, scanner, and proof records in one workspace. You can set up the banner and install path without building the consent bridge yourself.

Create account

Simple launch checklist

  • Banner is published with clear accept, reject, and preferences controls.
  • CMP tag fires on Consent Initialization in GTM.
  • Google tags receive denied defaults before the visitor chooses.
  • Accept and reject choices send a consent update.
  • Tag Assistant or GTM Preview shows the expected consent state.