Consent Mode and consent banners: the guide
In the EU a tag may only store or read data after the visitor agrees. Consent Mode is how Google's tags learn what the visitor chose; your consent banner is where the choice is made. When the two disagree, you either lose data you were allowed to keep or collect data you were not. This page lists our guides on both, in reading order.
Start with the Consent Mode setup. Then follow the guide for your banner, and finish with the check for tags that fire too early.
Consent Mode
How Consent Mode v2 works in a web and a server container, how to read what a hit says about consent, and how to find tags that ignore it.
- Consent Mode v2 in Google Tag Manager: web and server-side setup Setup
Set up Consent Mode v2 in Google Tag Manager, web and server-side: the four signals, default and update, basic or advanced mode, and Conversions API tags. - Consent Mode v2: how to read the gcs and gcd parameters Advanced
Read the consent state on every Google hit: what gcs values like G100 and G111 mean, how to decode the gcd letters, and which values point to a broken setup. - Tags that fire before consent: how to find and fix them Fix
Tags that fire before consent, or keep running after a refusal, are the most common consent problem we find. What causes it, how to find it, how to fix it.
Consent banners
Connecting your consent banner to Tag Manager so that the choice reaches every tag.
- Cookiebot in Google Tag Manager with Consent Mode v2 Setup
Install Cookiebot in Google Tag Manager with Consent Mode v2: the CMP template, default consent per region, cookie_consent_update triggers, privacy trigger. - CookieFirst in Google Tag Manager with Consent Mode v2 Setup
Install CookieFirst in Google Tag Manager with Consent Mode v2: the CMP template, default consent per region, cf_after_consent_update triggers and testing.
With Measurebase
To test tags that wait for consent without clicking through a banner each time, see Auto Grant Consent.