Usercentrics - PUBLIC

How do I implement a tag in Google Tag Manager, if it is dependent on an event that is emitted before the earliest Usercentrics event?

In some circumstances, a Data Processing Service’s (DPS) tag might listen to an event that is emitted before the consent information is made available through a Usercentrics event. Shopping cart events in online shops are common examples of this, hence we will use this as a case to illustrate the following solution. Google Analytics will be used as an example DPS.

In order to only activate the Google Analytics tag once the user gave consent and once the shopping cart event took place, we need to create a Trigger Group in our Google Tag Manger (GTM):

  1. Go to “Triggers” in you GTM dashboard.

  2. Click “New”.

  3. Select “Trigger Group”.

  4. Name it “Google Analytics Trigger Group”.

  5. Add your Usercentrics “Google Analytics Trigger” (learn more about this here) to the Trigger Group.

  6. Add your “Shopping Cart Trigger” to the Trigger Group.

  7. Tick “All Conditions” under “This trigger fires on”.

     

  8. Go to “Tags” in you GTM dashboard.

  9. Click on your “Google Analytics Tag.

  10. Select “Google Analytics Trigger Group” as “Firing Triggers”.

Now your Google Analytics tag will only be activated, once both the “Google Analytics Trigger” and “Shopping Cart Trigger” fire.

 

Usercentrics - PUBLIC