Usercentrics - PUBLIC

How do I directly integrate the Usercentrics CMP V1 into my Google Tag Manager?

⚠️ The following setup is not recommended by Usercentrics. Instead, insert the Usercentrics CMP into the <head>-area of your website and only integrate the tags of the individual data-processing services in your Google Tag Manager.

Add a new tag to the Google Tag Manager, which will contain your Usercentrics script

  • Navigate to "Tags" in the side-menu and then click on "New".

  • Name the new tag "Usercentrics CMP".

  • After clicking on "Choose a tag type to begin setup...", select "Custom HTML".

  • Insert your Usercentrics script in the HTML-section of the tag. Your Usercentrics script will look something like this:

CMP Version 1

<script type="application/javascript" src="https://app.usercentrics.eu/latest/main.js" id="XXXXXXX" ></script>

→ Replace for both versions XXXXXXX with your SettingsID.

  • Tick the box "Support document.write".

Add a new trigger, that will define when the Usercentrics script is fired:

  • Click on "Choose a trigger to make this tag fire...".

  • Select the "Consent Initialisation" trigger, which listens for the event "Page View".

    • Explanation: the "Usercentrics CMP" tag will give the Google Tag Manager the user's decision regarding accepting or declining tracking technologies. In order for this decision to determine whether these tracking technologies will be fired after the "Usercentrics CMP" tag is fired, the "Usercentrics CMP" tag needs to be loaded at the earliest event. This is "Consent Initialization". The triggers of the tracking technologies should be fired on the custom Usercentrics event “consents_initialized”. Information on how to apply this event to a trigger can be found here.

  • Save your newly added "Usercentrics CMP" tag.

Do you need further help?

https://usercentrics.atlassian.net/wiki/spaces/SKB/pages/234913848

Usercentrics - PUBLIC