Cookiebot WordPress cookie plugin implementation

You can use the official Cookiebot WordPress plugin to implement the cookie consent banner and cookie declaration on your website. Alternatively you can implement Cookiebot with Google Tag Manager or direct in your websites HTML template. Once implemented, your website has a fully automated cookie consent solution.

After implementing the Cookiebot cookie plugin, you can also use the CookieInfo Custom Cookie Banner designs.

Cookiebot WordPress implementation support

After downloading the Cookiebot WordPress cookie plugin follow the following steps:

  1. Create and setup your Cookiebot account
  2. Connect your domain group
  3. Connecting your GTM account (optional)
  4. Google Consent Mode (optional)
  5. Multiple banner setup (optional)

1. Create and setup your Cookiebot account

1. Add your domains

  1. Open “Settings” → “Domains” in your Cookiebot account
  2. Click the green “plus” button and add your domain names without http:// or https://
  3. Click the “save” button
Add domain in the Cookiebot Manager.

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.

Please note: All Cookiebot accounts start off as a Free plan. If you have a single domain with fewer than 100 pages, you can stay on the Free plan indefinitely. If you add additional domains, or if your single domain has more than 100 pages, your subscription will be converted to the 30-days-Trial plan. During the trial you have the opportunity to test out Premium functionalities free of charge. Upgrading to a Premium plan can be done by adding payment details (credit card or PayPal) to your account.

2. Set up your banner configuration

Decide what you banner should look like and what text should be used in the cookie text. You can also check out the CookieInfo custom cookie banners if you want a different cookie banner. 

Also see our knowledge base articles on setting up your banner according to European GDPR and/or California’s CCPA.

2. Connect your domain group

You can find your CBID or Domain Group ID as follows:

  1. Navigate to “Settings” and select the domain group you wish to find the ID for.
  2. Select the “Your scripts” tab
  3. The Domain Group ID can be copied into any integration that requires it. Please ensure you include the full ID string when copy/pasting.
Domain group ID cookie manager.
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.
  1. Open the Cookiebot CMP plugin in your WordPress environment
  2. Go to “Settings” → “General settings” and paste the Domain Group ID
  3. Save your settings
Add Domain Group ID in - Cookiebot WordPress Plugin
Add domain group ID in the Cookiebot WordPress cookie plugin.

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.

  • 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.
  1. Open the Cookiebot CMP plugin in your WordPress environment
  2. Open “Settings” → “Google tag manager”
  3. Enable the GTM toggle
  4. 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?
  5. 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:

  1. Open the Cookiebot CMP plugin in your WordPress environment
  2. Open “Settings” > “Google Consent Mode”
  3. Disable/enable the toggle
  4. 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.

Enable TCF support in your cookie banner.

5. Multiple cookie banner setup (optional)

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.

⚠ Important: Do not add any domains to these Domain Groups! Only the primary Domain Group should contain the domain. This is will be where the consent log, scans, cookie classifications and reporting are maintained.
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:

  1. Create a new domain group by clicking the plus sign button in the top right corner
  2. Add the domain group name (example: CCPA) and click “OK”
  3. Leave the domain group empty (=do not add any domain names), as seen in the screenshot below
  4. Navigate to “Settings” > “Dialog” and add the desired banner configurations

In your WordPress environment:

  1. Open the Cookiebot CMP plugin
  2. Open “Settings” > “Multiple Configurations”
  3. Enable the toggle 
  4. Add your main domain group ID and select the corresponding region(s)
  5. Add your secondary domain group ID and select the corresponding region(s)
  6. Save your new settings

Have any questions? please let us know. Happy to help you further with your implementation.

14 day free trial Cookiebot

Cookie scanner, cookie banner, cookie declaration and cookie consent in one solution.

  • Use cookies on your website compliant with GDPR, ePrivacy and cookie legislation
  • Cookie management completely automated
  • Cookie banner based on your corporate identity
  • Automatic composed cookie declaration, always up to date

The Cookiebot solution runs on 1.4 million websites, manages 5.2 billion monthly User Consents and supports 47+ languages.