Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

⚠️ 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

Code Block
languagehtml
<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 "All PagesConsent 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 "Page ViewConsent 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?

How can I get help with technical questions?