If you need you domain to support more than one data protection legislation, for example GDPR and CCPA, you can configure the Cookiebot script to display different banners, depending on the visitor's location.
Step 1: Configure Domain Groups in the Manager
To be able to display different banners on the same domain, additional Domain Groups need to be created (one for each additional banner variant). The additional Domain Groups will function as separate configurations in terms of banner template, behavior, functionality, styling and content.
You don't have to make any changes to your existing Domain Group(s).
Important: The Domain Groups you create for the purpose of displaying alternative banners shouldn't have any domains added to them!
Only one domain group should contain the domain to which you want to apply multiple banners. This is the primary domain group where scans, cookie classification and reporting are maintained.
Step 2: Implement the configuration on your website
Now that we have our alternative banner configurations ready, we need to tell the Cookiebot script which banner to use, depending on the user's location.
Create a new Custom HTML tag and add this content to it:
You will obviously need to replace the placeholder value of cbid with your own Domain Group serial-number. You can find this on the "Your scripts" tab.
Similarly, you can find the serial-number for the alternate banner in the domain group you intend to use as an alternative configuration.
AA in the value for georegions represents the country code of the country you want to display the alternate banner for. For example NL for The Netherlands, FR for France, and so on - Please find a complete list of REGION_IDs in this article.
Here again the serial number is specific to the domain group with the banner you would want to display.
Please note: the values of cbid and georegions are the only two values you need to change.
Add multiple alternative configurations for different regions:
You can add more than one alternative banner or configuration by listing region and DBID pairs as comma-separated values inside the georegions variable like shown here:
You can also define groups of countries that use a specific banner, by specifying multiple country ISO codes separated with commas: