Via Google Tag Manager

If you wish to activate Google's Advanced Consent Mode via Google Tag Manager (GTM) to have more control over its behavior or to load the Sirdata CMP scripts from GTM, for example, this is entirely possible.

Go to your GTM account, navigate to the "Templates" section, and click on "Search Gallery" in the "Tag Templates" table.

Search for "Sirdata CMP | Google Consent Mode"

Add the "Sirdata CMP | Google Consent Mode" template to the workspace.

Go to the "Tags" section, then create a new tag by selecting the new tag type "Sirdata | Google Consent Mode" which now appears in the custom tags :

In the configuration section, click on to add a configuration:

Select your criteria or keep the default suggestion (Refer to the official Google Consent Mode page for more information on these criteria if needed) :

Repeat the operation if necessary, for example, if you are making configurations differentiated by country. Click here for more information on these criteria.

Then configure your advanced options and enter your partner and configuration IDs if you wish to load the CMP from GTM :

If you do not load the Sirdata CMP from GTM, it is mandatory to load it from the site, and the CMP scripts must be loaded before the Tag Manager.

Finally, select the trigger "Consent Initialization - All Pages" and

Test using the preview mode, and publish if everything works as expected.

Congratulations!

Dernière mise à jour

Cet article vous a-t-il été utile ?