In this article, we'll walk you through the process of setting up consent management using Axeptio and Google Tag Manager (GTM). The configuration involves several key steps, which we'll explain in detail:
With the client-side method, the Axeptio script is loaded in the browser and is retrieved from the Axeptio domain. With server-side tracking, the scripts required for displaying the consent pop-up are loaded from your domain.
The client-side approach comes with several limitations. Ad blockers and browser restrictions can interfere with loading scripts from third-party domains. For example, browsers like Safari have a seven-day limit on cookie lifespans, which means users are repeatedly prompted for consent.
Managing consent on the server-side will eliminate these impacts. This method provides more control over the data collection process as well as lets you bypass ad blockers and browser limitations.
Please note: using server-side tracking doesn't eliminate the need to request user consent for data collection.
Consent management in server-side works the following way:
To set up consent mode, you will need the following:
1.1 Go to your project → click on My cookie banners.
1.2 Click Create a new cookie configuration.
You can activate Consent Mode V2 in Axeptio by going to the section Banners → select the needed banner if you run multiple projects → enable Consent Mode V2.
Activating this option will add a new screen to your widget, featuring the four parameters of Google's Consent Mode.
Publish the changes.
Axeptio offers a few options to add the cookie banner to your website: using GTM, Axeptio script, or WordPress module. For the purpose of this article, we will consider the server GTM method.
2.1.1 Download the Axeptio client from GitHub and unzip the file.
2.1.2 Create a new template in the Client Templates section and upload the file you downloaded from GitHub.
2.1.3 Create a new client and, as a client type, choose Axeptio and click Save.
2.2.1 Download the Axeptio tag from GitHub and unzip the folder.
2.2.2 Import it in the Templates section.
2.2.3 Go to the Tags section, create a new tag with Axeptio CMP tag type.
2.2.4 Add the trigger with the following configurations:
The steps below are aimed at lowering the impact of ad blockers and browser restrictions. The instructions below assume that you have already configured the server GTM container.
You can do it in Stape admin → choose your container → add custom domain. Check the detailed guide in our article on custom domain configuration.
After adding the custom domain, set up the DNS record provided in the Stape container admin. Please note that domain verification may take up to 72 hours.
After configuring the custom domain and adding the DNS record, go to the server GTM container settings and add a custom domain.
Activate the Custom Loader power-up and update the GTM script on your website.
Axeptio offers a few options to add the cookie banner to your website: using GTM, Axeptio script, or CMS modules. For the purpose of this article, we will consider the GTM method.
Create a new tag with Axeptio CMP configuration type.
Both can be found in the My banners section → existing configurations → integration on your website.
This ensures that consent requests are routed through your own systems instead of third-party URLs.
Implementing server-side consent management with Axeptio is a privacy-compliant solution that helps bypass the limitations of client-side tracking. By routing scripts and consent interactions through your own domain, you gain greater control over data collection and lower the impact of ad blockers and browser restrictions on the data.
Comments