Explicit Consent Prompt / Consent Preferences Manager Tracking

Gold Contributor
Gold Contributor

Is there a way to track the interaction on the Explicit Consent Prompt & Consent Preferences Manager via Google Analytics? I would like to fire events when the user clicks on the opt in and opt out buttons along with when they toggle any of preferences in the consent manager. 

2 REPLIES 2

Explicit Consent Prompt / Consent Preferences Manager Tracking

Tealium Employee
I believe we answered this for you through the ticket you created. But for others referencing your question, here are some details.
 
Tealium has not yet loaded any tags when the Explicit Consent dialog prompts. Thus, neither setting onHandler events or triggering a utag.view or utag.link call will work to trigger your Google Analytics tag. 
 
Explicit Consent
The TiQ Client-Side Tools / Consent Management UI allows you to edit the JavaScript that executes the dialog. This JavaScript code can be accessed through the Edit button within the Content section of Explicit Consent Prompt. When opened, you have access to not only the JavaScript but also the HTML and CSS that is used for the pop-up. 
 
Here's an example of the JavaScript code, showing the content when first activating Explicit Consent, showing where you can set a flag when consent is given:
k_0eVCGUCKNTEWbFCNxLkVGv3bHHctFhQQ.png
There are various ways you might go about programming this. For example, a parameter can be set in the UDO when the visitor accepts consent. Then in an extension scoped to your Google Analytics tag, you could set event_category and event_action based on the content of your parameter. 
 
Consent Preferences
The TiQ Client-Side Tools / Consent Preferences UI allows you to edit the JavaScript in a similar fashion. The JavaScript code is a bit more complicated since it manages the activation of tag by category. Once you identify the feedback you wish to capture through the Consent Preferences interaction, you could use a similar method to capture and then notify your tag of the outcome. 

Explicit Consent Prompt / Consent Preferences Manager Tracking

Tealium Expert
Tealium Expert

Thanks @david_bird for elaborating on this topic. I got a related question in my head. You mention that "Tealium has not yet loaded any tags when the Explicit Consent dialog prompts.

I have looked around in the new consent feature to find the equivalence of the opt-in/opt-out default setting in the previous Privacy manager extension, but without success.

Does that mean that the new consent feature ALWAYS applies opt-out as default, i e no cookies whatever are set on initial page load?

Public