Datatrics Cookie consent pop-up

In this article we will describe how to set up the Datatrics Cookie consent pop-up in Google Tag Manager

Odin Bergman avatar
Written by Odin Bergman
Updated over a week ago

Within Datatrics there is an option for using the Datatrics Cookie consent pop-up on your own website. You can find this option here:  

When you enable the Datatrics Cookie consent pop-up, this wil be displayed on your website: 

To make the Cookie consent pop-up workable for all of your pixels you have to set your Google Tag Manager with the following options:

Set the variable eventAction

Set a variable in Google Tag Manager that gets the value eventAction from the datalayer:
Variable Type: Data Layer Variable
Data Layer Variable Name: eventAction

Set the variable dtOptin

Set a variable in Google Tag Manager that gets the value dtOptin from the datalayer:
Variable Type: Data Layer Variable
Data Layer Variable Name: dtOptin

Set the trigger DatatricsConcentAccepted

Set a trigger with the following properties:
Trigger Type: Page View
This trigger fires on: "Some Page Views"
This trigger is activated prior to: dtOptin and is equal true

Set the trigger DatatricsConcentDeclined

Set a trigger with the following properties:
Trigger Type: Page View
This trigger fires on: "Some Page Views"
This trigger is activated prior to: dtOptin and is equal false


Set the trigger DatatricsEventConcentAccepted 

Set a trigger with the following properties:
Trigger Type: Custom Event
Event Name: DatatricsEvent
This trigger fires on: "Some Custom Events"
This trigger is activated prior to: 

  • eventAction is not equal to senddata 

  • dtOptin is equal to true 

Set the trigger DatatricsEventConsentDeclined

Set a trigger with the following properties:
Trigger Type: Custom Event
Event Name: DatatricsEvent
This trigger fires on: "Some Custom Events"
This trigger is activated prior to: 

  • eventAction is not equal to senddata 

  • dtOptin is equal to false


Finally you have to set al your pixels you want to trigger after the Datatrics Consent.

For example if you want to trigger Google Analytics after the Datatrics Consent you have to set the firing triggers to all pages and add DatatricsEventConcentAccepted. In the field exeptions you have to choose DatatricsEventConcentDeclined.
Then Google Analytics is not firing at the page if a customer chooses the option decline. 

Did this answer your question?