Cookiebot consent management platform (CMP) provides transparency and control over all cookies and tracking on websites. Cookiebot focuses on three core functions: consent to store, monitor, and control cookies making it simpler to comply with privacy regulations.
In Smartpages, you can install Cookiebot for each landing page separately using Google Tag Manager (GTM).
This guide will show you how to install Cookiebot on your landing page. Before you get started, you will need to install and configure the Tag Manager and container for your landing page. Read more about adding Google Tag Manager in Smartpages Help Center or go to Google’s post on Tag Manager.
Sign up for Cookiebot
- Before setting up a tag in GTM, create an account in Cookiebot.
- In the Domains section, add your subdomain/domain and click on Save.
- each subdomain is treated separately, e.g. sub1.domainname.com, sub2.domainname.com, and sub3.domainname.com should be added separately,
- dominname.com and www.domainname.com are treated as 1 domain, just add one of them,
- a domain with a path and its parent domain are treated as 1 domain, e.g. if you add sub1.domainname.com, then the banner or policy page will work with an HTML widget also for sub1.domainname.com/cookie_policy, sub1.domainanme.com/consent, etc. It is not necessary to add such domains with a path to Cookiebot.
- Add new domain groups if you want to use different settings or banner styles for specific domains.
- You will find the group ID in the Your scripts section. You will add it in GTM later.
Set up a Cookiebot tag in GTM
- Log in to Google Tag Manager.
- Go to Workspace and navigate to Templates.
- In the Tag Templates section, click Search Gallery on the right and use the search engine to find Cookiebot CMP.
- Select Add to workspace and click Add in a popup window.
- Go to Tags and add a new tag.
- In the Tag Configuration section, click on Choose a tag type and again use the search engine to find Cookiebot CMP.
- Enter a name in the upper left corner. In the Cookiebot ID field, paste the ID you got from Cookiebot.
- Scroll down to select a trigger.
- Select Consent Initialization – All Pages.
- Once the tag is configured correctly, click Save in the upper right corner.
Configure consent settings in GTM
- GTM supports 5 different consent types by default, which are automatically mapped by Cookiebot to 4 categories.
- In the Default Consent State section, you can set which categories of cookies should be granted or denied before the user submits consent. You can change the default consent settings at any time. Go to the Tags tab, select the Cookiebot CMP tag twice and go to the Default Consent State section.
- By default, all categories are set to Denied.
- If you want to change the default, select Granted.
- The files required (necessary) category is set to Allow by default and cannot be edited.
- To manage consent settings, activate Consent Overview.
Go to Admin > ContainerSettings.
Click on Enable consent overview.
- You can find an overview in the Tags tab under the shield icon.
- To adjust settings, select Cookiebot and click on the gear wheel icon.
- You can bulk edit the settings (1) or individually for a selected type (2).
- Follow this link for a guide to how to set up consent settings in Google Help.
- When you’re ready, click Submit in the upper-right corner of the GTM.
Install cookie consent banner on a landing page
Once your tag and banner are ready, install the Cookiebot code on your landing page.
- In the Your scripts tab in Cookiebot, copy the first code and go to Smartpages
- Enter a name and paste the snippet in the Content field. Select Head for Main page or both pages and click Add.
- Go to your live landing page and verify whether the banner displays as expected.
Once you have correctly configured and installed Google Tag Manager and Cookiebot, the cookie consent banner should work as it supposed to. Here are links to Google Help with detailed guides to GTM and its consent management.