Advance Consent Mode (GCM) V2 :
User visits websites
Google tags will load
Consent banner will collect the consent status of the user and
Consent Mode will communicate it
...
User rejects
Google tags adjust
Tags will adjust their behaviour to respect the status received from each parameter.
Consent Mode detects user <– choice and communicate –> that choice to Google tags
...
User consents
Google tags behave as normal (firing)
Basic Consent Mode (GCM)
User visits websites
Google tags are blocked until consent is communicated via consent banner (CMP)
Consent banner appears
...
User rejects
Google tags stay blocked
Tags do not fire and no data is shared with Google.
<– Consent Mode –>
User consents
...
Consent Mode detects that user has consented and communicates it to Google tags
...
Info |
---|
Version 2 of Consent Mode introduces two additional bits (ad_user_data & ad_personalization) within the consent mode updates. |
How Google Tag Manager handles consent
Feature | Basic consent mode | Advanced consent mode |
---|---|---|
Tag loading | Blocked until user interaction with a consent banner. | Loads with defaults set to denied, unless configured otherwise. |
Data transmission | No data is sent before a user consents - not even the default consent status. | When consent is denied, consent state and cookieless pings are sent. |
Consent states | Set after user interaction. | Defaults set to denied, unless configured otherwise; updates based on user choice. |
Tag behavior after user interaction | Loads and executes consent mode APIs only when a user grants consent. | Adjusts tag behavior based on user consent choice. |
Conversion modeling | General model (less detailed modeling). | Advertiser-specific model (more detailed modeling). |
Basic consent mode
Google tags blocked until consent is granted
Using Ucersentrics CMP, tags within GTM will need to be triggered
Advanced consent mode
Google tags are loaded before the consent dialog appears
Tags send cookieless pings when cookie consent declined
Using Ucersentrics CMP, tags within GTM won’t need to be triggered
Is Consent Mode v2 enabled?
We assume you've added the Consent Mode script before the Google Tag Manager script as instructed in our Adjust the existing Google Tag Manager code .
Checking the preview in Google Tag Manager
You can also inspect the preview to confirm that Consent is enabled, and if you're on version 2.
Start the preview and take the following steps:
Select "Consent"
Select the "Consent" tab
Ensure that the "On-page Defaults" are set and that they include the two new parameters;
ad_personalization
andad_user_data
.
Checking the Consent Mode settings
When a page loads prior consent, the consent mode settings should be correctly registered in Google Tag Manager.
If you've implemented Usercentrics using the Usercentrics CMP template, you don’t need to add the default values for the Consent Mode as they’re present in the UC temple.
...
Checking the dataLayer
Checking the contents of the dataLayer can be done by simply executing the command dataLayer
. After consent has been given for all types of cookies:
...