DG and Privacy UX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Consent Solutions Knowledge Base

Wrapping Tags in Prior Consent in UCP Script

The Privacy UCP tag comes with a prior consent callback function to wrap vendors and tags in, so that they do not drop onto a page until the user has interacted with the notice to allow it.  

Here is an example of how it works:
http://noticedemo.evidon.com/Teresa/EvidonPriorConsentDemo.html

1.  Using a tracking tool like Ghostery, open the page above.kA01W000000HgCBSA0_en_US_1_0.png

 


2.  Observe the Evidon tag on the page in the tracking tool. 



3.  Click Accept, and then check the tracking tool, and you should see Amazon and Yahoo have dropped on the page. 

kA01W000000HgCBSA0_en_US_1_1.png

 



Below is a snippet of where the prior consent callback is in the UCP tag, and an example of how to wrap a tag in it:

This shows Amazon and Yahoo appended in the prior consent callback function.
kA01W000000HgCBSA0_en_US_1_2.png

 




We do integrate with Google Tag Manager and Tealium to control prior consent as well.  You can find info on that here:

UCP Google Tag Manager Document (GTM Prior Consent Instructions)
Universal Consent Platform - Tealium Integration


Attached to this article is an example of the full UCP script.  

Labels (1)