The easiest way to implement Cookiebot CMP on your WordPress website is by installing our plugin.
Download the Cookiebot CMP plugin for WordPress
Want to install Cookiebot CMP without the plugin?
Follow the manual installation guide.
Once you have downloaded the plugin, follow the installation steps:
- Create and setup your Cookiebot account
- Connect your domain group
- Connecting your GTM account (optional)
- Google Consent Mode (optional)
- Multiple banner setup (optional)
1. Create and setup your Cookiebot account
Create your own Cookiebot account by visiting our signup page.
-
Add your domain(s)
- Open "Settings" → "Domains" in your Cookiebot account
-
Click the
button and add your domain names without http:// or https://
- Click the "save" button
A scan of the website will start immediately and should complete within 24 hours.
The scan report will be delivered to you via email and can be found in the "Reports" section of the Manager. Additionally, you can find an overview of all cookies detected in the "Cookies" section of the Manager. -
Set up your banner configuration
Decide what you banner should look like and what it should say. Check out our guides on how to style your banner, edit the content and set languages and add geo-locations.
Also see our guides on how to setup your banner according to European GDPR and/or California's CCPA.
2. Connect your domain group
To find your CBID or Domain Group ID follow these simple steps:
- Navigate to "Settings" and select the domain group you wish to find the ID for.
- Select the "Your scripts" tab
- The Domain Group ID can be copied into any integration that requires it. Please ensure you include the full ID string when copy/pasting.
Please note that the CBID or Domain group ID is not a secret key, it is an identifier used to match the right configuration to your domains. It will be publicly available in your source code on your website. This is as intended.
- Open the Cookiebot CMP plugin in your WordPress environment
- Go to "Settings" → "General settings" and paste the Domain Group ID
- Save your settings
3. Connecting your Google Tag Manager account (optional)
To greatly simplify implementation, and to ensure that scripts load in the correct order, and using the correct settings, you can now add Google Tag Manager with Consent mode enabled using the Cookiebot WordPress plugin.
First things first:
-
-
- Ensure that you have version 4.2.0 of the Cookiebot WordPress plugin
- Ensure you've already created a Google Tag Manager account, and have a container ID
- Figure out if you need to rename GTM's dataLayer. If you don't know what that means, you can probably just use the default "dataLayer"
- Avoid implementing Cookiebot multiple times, by ensuring that you don't load Cookiebot using the Cookiebot CMP tag in Google Tag Manager.
If you're unsure:
- click the Tags menu item in GTM
- Check if Cookiebot CMP is listed
- If it is, ensure that there is nothing under Firing Triggers.
- Pause or remove the tag, or remove its trigger to ensure it won't load.
- Remember to publish your changes if you made any.
-
- Open the Cookiebot CMP plugin in your WordPress environment
- Open "Settings" → "Google tag manager"
- Enable the GTM toggle
- Add your Google Tag Manager ID or container ID, formatted as "GTM-XXXXXX".
See Google's own documentation on How to find the GTM ID? - Add the Data Layer Name (optional). If you haven't renamed your GTM data layer, you can probably just use the default "dataLayer". See Google's own documentation on How to find the Data Layer Name?
4. Google Consent Mode
About Google Consent Mode
Google Consent mode allows you to adjust how your Google tags behave, based on the consent status of your users. You can indicate that consent hasn't been granted yet for analytics and ads cookies prior consent. Google's tags will dynamically adapt, only utilizing cookies after consent has been given by the user.
You can read more about Google Consent mode in Google's support article.
Currently the following Google products have Built-In Consent Checks:
Implementing Google Consent Mode
Google Consent mode is automatically enabled in the settings of your Cookiebot CMP WordPress.
If you would like to disable/enable this:
- Open the Cookiebot CMP plugin in your WordPress environment
- Open "Settings" > "Google Consent Mode"
- Disable/enable the toggle
- Save your settings
You can now safely use the All pages trigger for the tags mentioned above, without needing to add Cookiebot triggers or conditions to prevent cookies from being set prior consent.
Please note that you still need to use Cookiebot triggers and/or conditions for tags that don't support Google Consent mode as described here: Google Tag Manager deployment.
TCF2.0 enabled:
If you've enabled both GTM and the IAB framework using the Cookiebot CMP WordPress plugin (Under "Settings" → "IAB"), the following line of code will be added above the Google Tag Manager snippet on all pages:
window ['gtag_enable_tcf_support'] = true;
This will enable TCF support in Google Tag Manager, further ensuring that your visitors' consent preferences are honored.
5. Multiple banner setup (optional)
See more about our Premium subscriptions here.
If you wish to display different banners, with different configurations for visitors from specific countries or regions, you need to start by configuring your domain groups in your Cookiebot CMP account. An additional domain group is needed for each alternative banner configuration.These additional domain groups will serve as alternative configurations in terms of banner template, behavior, functionality, styling and content.
No changes to your existing domain groups, or their configuration are required.
If the domain is added to any the additional Domain Groups you may be add charged for scans of the same domain.
In your Cookiebot CMP account:
- Create a new domain group by clicking the
button in the top right corner
- Add the domain group name (example: CCPA) and click "OK"
- Leave the domain group empty (=do not add any domain names), as seen in the screenshot below
- Navigate to "Settings" > "Dialog" and add the desired banner configurations
In your WordPress environment:
- Open the Cookiebot CMP plugin
- Open "Settings" > "Multiple Configurations"
- Enable the toggle
- Add your main domain group ID and select the corresponding region(s)
- Add your secondary domain group ID and select the corresponding region(s)
- Save your new settings
Comments
0 comments
Please sign in to leave a comment.