Usercentrics - PUBLIC

How can I forward consent decisions to a Tag Manager?

Each Tag Manager has a different name for the Data Layer variable. This means that this variable name needs to be inserted into https://admin.usercentrics.eu/ so the Tag Manager can process the consent decisions.

To push events into the Data Layer you can use this script:

{Data Layer Variable}.push({'event': 'event_name'});

For the default Data Layer variable:

dataLayer.push({'event': 'event_name'});

It’s also possible to add more variables to the Data Layer:

{Data Layer Variable}.push({'variable_name': 'variable_value'});

You can see another example with multiple variables here:

When a {Data Layer Variable}.push() call is made by code on a page, in a custom template or in a custom HTML tag, the associated message is queued and processed after all other pending messages have been evaluated. This means that updated Data Layer values are not guaranteed to be available for the next event. To handle these cases, it’s necessary to add an event name to a message as it will then be transmitted to the Data Layer and wait for that event name with a custom event trigger.


Do you need further help?

How can I get help with technical questions?

 

Usercentrics - PUBLIC