Skip to main content

Choose the right method to load the correct Axeptio banner

Adrian ESCRIVA avatar
Written by Adrian ESCRIVA
Updated over a month ago

Your website has several versions? For a consistent and compliant experience, make sure to adapt your banner to each version.

Why adapt your banner?

Unless your site targets a single, uniform audience, one banner configuration won't be enough. Here are a few common cases:

🌍 Multilingual site: a French banner for the .fr domain, an English one for .com, etc.

⚖️ Different regulations: GDPR for Europe, CCPA for the US, LGPD for Brazil…

🧩 Different content or services: some versions may use different third-party

services (Google Ads, YouTube, etc.)

To do things right, you need to create several banner configurations — each version of your site should have its own Axeptio setup.


If you are integrating Axeptio via your CMS

Our CMS plugins/modules allow you to choose which Axeptio configuration to load based on the site language selected by the visitor.

They automatically detect the languages configured on your site and let you assign an Axeptio configuration for each language through dropdown menus.

Example for our WordPress plugin

By default, the “Dynamic (based on Axeptio)” option is selected for each language. In other words, no configuration is associated with your languages.

You should leave the “Dynamic (based on Axeptio)” option selected only if you want to use another method from the ones listed below.

Fixed configuration loading in your integration

This is the simplest method: when integrating Axeptio — whether via hardcoded script, GTM tag template, or CMS plugin — you can explicitly define the technical name of a configuration to load (using the cookiesVersion parameter).

What it means in practice:

  • On a specific version of your site, you integrate Axeptio with the matching configuration

  • Axeptio always loads this specific config, without detecting anything on the page

✅ Ideal for sites with separate deployments (e.g., fr.mysite.com and en.mysite.com each have their own integration)


Using URL-based rules in Axeptio admin

If language or version is directly visible in the URL (e.g., /fr/, /en/, or fr.mysite.com), you can create multiple configurations in Axeptio admin and assign them URL rules or regular expressions.

Axeptio will then automatically load the right configuration based on the visited page.

✅ Great for those who are comfortable with URL patterns and want to manage everything from Axeptio!


Dynamically load configuration using GTM or custom code

If language isn’t visible in the URL, you’ll need another way to detect it — for example, using the lang attribute of the <html> tag, or a JavaScript variable.

Using Google Tag Manager (or another Tag Manager), you can:

  • Read the active language on the page (e.g., via the lang attribute)

  • Define a lookup table variable that maps each language to an Axeptio config

  • Load the Axeptio banner with the appropriate config

⚙️ This method requires more setup but offers greater flexibility for dynamic or complex multilingual sites.


Using Axeptio's geolocation feature

When geolocation is enabled, the banner configuration is automatically chosen based on the visitor's country (using their IP address).

✅ Very useful if your site applies different regulations based on user location, and language isn’t the only relevant factor.

Did this answer your question?