We assume you've added the Google Consent Mode script before the Google Tag Manager script as instructed in our tech doc or you’re using the Usercentrics CMP GTM template.
We also assume you’ve activated Google Consent Mode in the Admin Interface of your CMP Configuration or completed Step 2 of the tech doc and deactivated Google Consent Mode in the Admin Interface.
Some ways to check & test your GCM implementation:
Table of Contents | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Script to check Google Consent Mode storage type consent states
If you’re using our GTM template to implement the Usercentrics CMP via a GTM tag, the default consent states of the GCM storage types won't be pushed to the dataLayer. They will be registered internally in the Google Tag Manager, so inspecting the dataLayer won't work to see them like in the example above.
However, you can execute the following script in the Console of your browser’s DevTools to get the Google Consent Mode settings:
...