⚠️ 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 or via Google Tag Manager template.
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 V3".
After clicking on "Choose a tag type to begin setup...", select "Custom HTML".
Insert your Usercentrics CMP V3 script in the HTML-section of the tag. Your Usercentrics script will look something like this:
CMP Version 3
<script id="usercentrics-cmp" src="https://web.cmp.usercentrics.eu/ui/loader.js" data-settings-id="XXXXXXX" async></script>
→ Replace data-settings-id: XXXXXXX with your ConfigurationID.
Tick the box "Support document.write".
Add a 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 "consent_status". Information on how to apply this event to a trigger can be found here.
Save your newly added "Usercentrics CMP V3" tag.