Use multiple banners on the same website (support both CCPA & GDPR compliance)

Please note this feature is available for premium subscriptions only as multiple domain groups is a requirement for this to work.

This feature allows you to run multiple configurations for the same domain without any extra costs if implemented correctly. Read carefully below!

Looking for a guide on how to setup your Cookiebot configurations for CCPA? You can find it here.

If you would like to display different banners, with different configurations to visitors from specific countries or from California, you may do so by following this guide. Please note that configuring geo regions in the script as described in this article will overwrite settings made for geo limitations in the distribution section of the platform.

Step 1: Configure your domain groups

The way to configure support for multiple legislation on the same domain(s) is through additional domain groups. The additional domain groups can function as separate configurations in terms of banner template, behavior, functionality, styling and content. 

You do not need to change your existing domain groups or their configuration.

For each new country specific implementation of the banner you will create a new domain group.

Important: Do not add any domains to the new domain groups you create!

Only one domain group should contain your domain. This is the primary domain group where scans, cookie classification and reporting is maintained. 

The subsequent domain groups you create should NOT have any domains added. If they do, you may be charged for additional scans.

Step 2: Implement the configuration on your website

You will take the script for the banner from your main domain group – find it under “Your scripts”:

<script id="Cookieconsent" src="https://consent.cookiebot.com/uc.js" 
data-cbid="00000000-aaaa-bbbb-cccc-000000000000" data-blockingmode="auto" 
type="text/javascript">
</script>

Edit the script to add a new attribute named “data-georegions” with the following value: 

{'region':'REGION_ID','cbid':'YOUR_DOMAIN_GROUP_ID'} 

The configuration consists of a region for the domain group configuration to be activated in and the domain group ID of the configuration you would like to use.

REGION_ID is the country code of the country you want the banner to display to, eg NL for The Netherlands, FR for France and so on – Please find a complete list of REGION_IDs in this article.

YOUR_DOMAIN_GROUP_ID is specific to the domain group with the banner you would want to display. Find the domain group ID under Your scripts, in the domain group you want to use in an alternative configuration.

EXAMPLE: To configure an alternative banner to be displayed to visitors in California for instance, use the REGION_ID: US-06 – your script should now look similar to this (only the two cbid values should differ)

<script id="Cookieconsent" src="https://consent.cookiebot.com/uc.js" 
data-cbid="00000000-aaaa-bbbb-cccc-000000000000" data-blockingmode="auto" 
type="text/javascript" 
data-georegions="{'region':'US-06','cbid':'11111111-a1cf-4dfc-a7b6-111111111111'}">
</script>

Notice the new addition to the script in highlighted bold.

Step 3: Implement the cookie declaration on your website

You will now take the script for the cookie declaration from your main domain group, just below the script for the banner – again find it under “Your scripts”:

<script id="Cookiepolicy" 
src="https://consent.cookiebot.com/00000000-aaaa-bbbb-cccc-000000000000/cd.js" 
type="text/javascript" async></script>

Edit this in the same manner as above by adding the data-georegions attribute with the regions and domain group IDs.

Your end result will be similar to this:

<script id="Cookiepolicy" 
src="https://consent.cookiebot.com/00000000-aaaa-bbbb-cccc-000000000000/cd.js" 
type="text/javascript" async 
data-georegions="{'region':'US-06','cbid':'11111111-a1cf-4dfc-a7b6-111111111111'}">
</script>

Add multiple alternative configurations for different regions:

You can add more than one alternative banner or configuration by listing region and cbid pairs as comma-separated values inside a “data-georegions” attribute like shown here:

<script id="Cookieconsent" src="https://consent.cookiebot.com/uc.js" 
data-cbid="00000000-aaaa-bbbb-cccc-000000000000" data-blockingmode="auto" 
type="text/javascript" 
data-georegions="{'region':'US-06','cbid':'11111111-a1cf-4dfc-a7b6-111111111111'},
{'region':'NL','cbid':'22222222-7562-4a47-a80e-222222222222'}">
</script>

The same approach works for the cookie declaration script.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Inhoud