Google Tag Manager events

If you use Google Tag Manager to manager your scripts on your website, Clym can fire custom Google Tag Manager events based on user consent and you can set your tags fire on those events. With this, you can keep all of your scripts in Google Tag Manager and still be able to manage your scripts. This requires no knowledege on your site except knowing how to manage your scripts in Google Tag Manager.


Custom Google Tag Manager events are something that you your tags can fire when those events are received. For example if you have a Google Analytics script in GTM and someone accepts the Google Analytics services in your Clym Widget, Clym sends an events to Google Tag Manager that Google Analytics was accepted. In your GTM, you can hook your script to that event and this will only fire when this event has happened.


Events Clym send

  • Consent accepted
  • Consent rejected


Setup

Login to your Google Tag Manager container
Variables
Go to Variables
Click on "New" in User-Defined Variables
DataLayer variable
Choose a variable type, select Data Layer Variable
Name the Data Layer Variable Name to be: clymServiceId and name the Variable on top to: Clym Service Id clymServiceId Variable
Create a new one with clymServiceName and Clym Service Name


clymServiceName Variable
Go To Triggers, create a New one for each service you want to control

Clym Consent Accepted - Google Analytics



Updated on: 28/10/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!