When you integrate Axeptio with Google Tag Manager, our SDK automatically sends multiple events and variables into the dataLayer.
This data can be used to trigger or block certain tags based on consent status, and adapts to different technical contexts.
Here's an overview of what Axeptio transmits to GTM to help you choose what to rely on in your triggers.
The technical name of services, used both at the event level (e.g.: axeptio_activate_google_analytics) and in the content of variables (axeptio_authorized_vendors: ["google_analytics"]), is defined at the level of the cookies you have added in your Axeptio project configuration (see the article Retrieve the technical names of your services).
Events sent in the dataLayer
axeptio_activate_ (and axeptio_enable_)
Each time a user interacts with the Axeptio banner (accepts a service, modifies their choices, etc.), an event is sent to the dataLayer.
The event name is specific to the service involved.
Examples:
axeptio_activate_facebook_pixelaxeptio_activate_google_analyticsaxeptio_activate_google_ads
These events are useful for creating custom event triggers in GTM: they guarantee that the tag fires only after the user's explicit consent.
axeptio_disable_
When the user refuses a service or withdraws their consent, Axeptio sends an axeptio_disable_<service_name> event to the dataLayer.
Events sent under two names
For certain services, Axeptio sends each event twice: once under the current technical name, all lowercase, and once under an old name, retained for existing integrations. This dual sending cannot be disabled.
Example: a visitor accepts TikTok. The dataLayer receives:
axeptio_activate_tiktokandaxeptio_enable_tiktok(current name)axeptio_activate_TikTokandaxeptio_enable_TikTok(old name)
If they refuse TikTok, the dataLayer receives axeptio_disable_tiktok and axeptio_disable_TikTok.
Base your triggers on the current name, in lowercase: here, axeptio_activate_tiktok. This applies whether the service is declared in your project under its current name or under its old name.
A few services involved:
Current name, to use | Old name, sent in addition |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
axeptio_update
This event is sent each time consent is updated, whether on the banner's first display or during a change via the widget.
You can use it as a base trigger, combined with a condition on the list of authorized services (see below), to fire a tag only if a given service has been accepted.
Axeptio Consent State variable template
The Axeptio Consent State variable template, available in the GTM gallery, lets you easily retrieve the list of services for which the user has given consent.
It relies on a dataLayer variable called axeptio_authorized_vendors (presented in the next section), but has the advantage of being ready to use, more readable and easier to use in your GTM triggers.
Example usage:
Create an Axeptio Consent State variable based on this template, then add a condition to your triggers:
{{Axeptio Consent State}} contains google_ads
axeptio_authorized_vendors variable
With each axeptio_update, a variable is also pushed to the dataLayer:
axeptio_authorized_vendors, which contains an array with the list of services for which the user has given consent.
Example value:
axeptio_authorized_vendors: [ "google_analytics", "google_ads", "clarity", "facebook_pixel", "mailchimp", "hubspot", "youtube", "googletagmanager", "axeptio", "cloudflare", "$$googleConsentMode", "Google_Ads", "MailChimp", "Youtube", "CloudFlare", "$$completed"]
Some services may appear twice with different names (e.g. "google_ads" and "Google_Ads"), to ensure compatibility with older integrations. - Entries starting with $$ are internal technical services used by the SDK (such as $$googleConsentMode or $$completed)
In GTM, you can create a data layer variable pointing to axeptio_authorized_vendors, and use it in your triggers:
{{DLV - axeptio_authorized_vendors}} contains google_analytics
This allows you to block or fire a tag depending on whether the relevant service has been consented to.
Advanced options
Our Axeptio CMP tag template includes two options that influence the behavior described in this article: dataLayer Name and Trigger GTM Events. For their full description, see Axeptio CMP template parameters.
