This article is part of the Integration series. Before following the guide below, make sure you have read the general overview article Choose your Axeptio integration method.
Are you already loading Axeptio via another method (CMS plugin, hardcoded, or other)? In that case, you don't need to follow this guide. If you're looking to manage your cookie blocking using GTM, consult this article.
Basic operation of GTM
This article does not cover Google Tag Manager account and container creation. For installation instructions, consult the official documentation.
Google Tag Manager works primarily in two parts:
Tags: these are the snippets of code that you will inject into your site (tracking code, conversion pixel, etc..)
Triggers: this is what allows you to trigger the injection of tags on your site. They allow you to define the condition for injecting your tag (đĄ on each page load, after a purchase, etc..)
Loading Axeptio via GTM
đȘ If you are already loading Axeptio via another method (script, plugin...), you do not need to reload Axeptio in GTM
â
Go to your GTM interface:
Select the Tags tab in the left menu
Then click New
Click in the Tag configuration rectangle. In the page that just opened:
Then in the list that appeared, click on "Discover more tag types in the gallery":
Search for "Axeptio CMP" and select the template:
Add the template to your workspace. You should now have this in your tag:
Now enter your project ID in the Project ID field.
(Optional) You can also enter the name of your cookies version, if you have multiple cookie widget configurations:
All that's left is to choose a trigger:
Click on the Triggering rectangle
Select the trigger named Consent Initialization - All Pages so that Axeptio loads first. This trigger is the first event in the GTM lifecycle â it ensures that default consent signals are set before your Google tags (GA4, AdsâŠ) execute. If you use another trigger (All Pages, DOM ReadyâŠ), your Google tags may fire without a consent signal, which results in data loss, GA4 traffic displayed as "Not set", or consent signals applied too late.
â
Finally, give your tag a name, then save it:
â
â
Your Axeptio tag is now fully configured. All you need to do is publish your GTM container so your changes become active on your site.
đ If you are using Google Analytics 4 and/or Google Ads, you will still need to configure Consent Mode v2 in this same tag. You can find all the information about implementing Consent Mode v2 here: Google Consent Mode v2 installation
