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.html1. Using a tracking tool like Ghostery, open the page above.
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.
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.
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 IntegrationAttached to this article is an example of the full UCP script.