Add Consent Studio to GTM
This guide explains step by step how to integrate the Consent Studio template into your Google Tag Manager web container, so your website complies with privacy regulations and visitors give proper consent for cookie use.
Add the Consent Studio tag template
Open your GTM web container, go to Templates, and click Search Gallery under Tag Templates. Search for Consent Studio CMP and add it to your workspace.
Create the Consent Studio CMP tag
Go to Tags and create a new tag. As the tag configuration, choose Consent Studio CMP.
Confirm your domain is registered
Unlike some other CMPs, Consent Studio doesn't need a manual ID pasted into the tag — it matches based on the domain you registered in your Consent Studio dashboard. Just make sure the site you're tagging is added there first.
Set the trigger and save
As the trigger, choose Consent Initialization – All Pages. This is required for Consent Studio to support Google Consent Mode v2 correctly. Save the tag.
Choose Basic or Advanced consent mode
Advanced — the simpler option. Let tags load on their normal trigger (e.g. All Pages), and Consent Studio adjusts their behavior automatically based on the visitor's consent state. This works well for official Google tags, which respect consent signals natively.
Basic — tags are only allowed to load once consent for a specific category has been given. To set this up, create a Custom Event trigger using one of Consent Studio's built-in dataLayer events —
cookie_consent_granted_functional,cookie_consent_granted_analytics, orcookie_consent_granted_marketing— and attach it to any tag that shouldn't fire until that category is accepted.
If you're not sure whether a particular tag respects consent signals on its own, Basic mode is the safer default for it.
Enable or disable Google Consent Mode (optional)
Google Consent Mode is on by default. If you need to turn it off, open the Consent Studio CMP tag's General Settings and set the Google Consent Mode toggle to No.
Next, make sure your consent overview settings are configured correctly within Google Tag Manager. Follow the 'Consent Management' article for these settings.
Since you don't want to measure events before the visitor has given consent, you'll also need to adjust the triggers of specific tags, such as the page_view event tags, see the 'Trigger sequence for consent processing' article to learn how to set this up.
Last updated
Was this helpful?

