Information & support > Knowledge base > Implementation >Laatst bijgewerkt opMay 2, 2024Cookiebot WordPress cookie plugin implementationYou 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.Download the Cookiebot WordPress plugin here.After implementing the Cookiebot cookie plugin, you can also use the CookieInfo Custom Cookie Banner designs.Cookiebot WordPress implementation supportAfter downloading the Cookiebot WordPress cookie plugin follow the following steps:Create and setup your Cookiebot accountConnect your domain groupConnecting your GTM account (optional)Google Consent Mode (optional)Multiple banner setup (optional)1. Create and setup your Cookiebot account1. Add your domainsOpen “Settings” → “Domains” in your Cookiebot accountClick the green “plus” button and add your domain names without http:// or https://Click the “save” buttonA 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 50 pages, you can stay on the Free plan indefinitely. If you add additional domains, or if your single domain has more than 50 pages, your account will be converted to the 14 day 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 cookie banner configurationDecide 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 groupYou can find your CBID or Domain Group ID as follows:Navigate to “Settings” and select the domain group you wish to find the ID for.Select the “Your scripts” tabThe 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.Cookiebot WordPress settingsOpen the Cookiebot CMP plugin in your WordPress environmentGo to “Settings” → “General settings” and paste the Domain Group IDSave your settingsAdd domain group ID in the Cookiebot WordPress cookie plugin.3. Connect your Google Tag Manager account with Cookiebot WordPress plugin (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 pluginEnsure you’ve already created a Google Tag Manager account, and have a container IDFigure 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 GTMCheck if Cookiebot CMP is listedIf 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 environmentOpen “Settings” → “Google tag manager”Enable the GTM toggleAdd 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 ModeAbout Google Consent ModeGoogle 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 WordPress Google Consent ModeGoogle 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 environmentOpen “Settings” > “Google Consent Mode”Disable/enable the toggleSave your settingsYou 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:Create a new domain group by clicking the button in the top right cornerAdd 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 belowNavigate to “Settings” > “Dialog” and add the desired banner configurationsCookiebot WordPress settings:Open the Cookiebot CMP pluginOpen “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 settingsHave any questions? please let us know. Happy to help you further with your implementation.14 day free trial CookiebotCookie scanner, cookie banner, cookie declaration and cookie consent in one solution.Use cookies on your website compliant with GDPR, ePrivacy and cookie legislationCookie management completely automatedCookie banner based on your corporate identityAutomatic composed cookie declaration, always up to dateStart 14 day free trialThe Cookiebot solution runs on 2,3 million websites, manages 7 billion monthly User Consents and supports 47+ languages.Previous Facebook Twitter LinkedIn E-mailNext
Laatst bijgewerkt opMay 2, 2024Cookiebot WordPress cookie plugin implementationYou 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.Download the Cookiebot WordPress plugin here.After implementing the Cookiebot cookie plugin, you can also use the CookieInfo Custom Cookie Banner designs.Cookiebot WordPress implementation supportAfter downloading the Cookiebot WordPress cookie plugin follow the following steps:Create and setup your Cookiebot accountConnect your domain groupConnecting your GTM account (optional)Google Consent Mode (optional)Multiple banner setup (optional)1. Create and setup your Cookiebot account1. Add your domainsOpen “Settings” → “Domains” in your Cookiebot accountClick the green “plus” button and add your domain names without http:// or https://Click the “save” buttonA 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 50 pages, you can stay on the Free plan indefinitely. If you add additional domains, or if your single domain has more than 50 pages, your account will be converted to the 14 day 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 cookie banner configurationDecide 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 groupYou can find your CBID or Domain Group ID as follows:Navigate to “Settings” and select the domain group you wish to find the ID for.Select the “Your scripts” tabThe 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.Cookiebot WordPress settingsOpen the Cookiebot CMP plugin in your WordPress environmentGo to “Settings” → “General settings” and paste the Domain Group IDSave your settingsAdd domain group ID in the Cookiebot WordPress cookie plugin.3. Connect your Google Tag Manager account with Cookiebot WordPress plugin (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 pluginEnsure you’ve already created a Google Tag Manager account, and have a container IDFigure 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 GTMCheck if Cookiebot CMP is listedIf 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 environmentOpen “Settings” → “Google tag manager”Enable the GTM toggleAdd 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 ModeAbout Google Consent ModeGoogle 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 WordPress Google Consent ModeGoogle 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 environmentOpen “Settings” > “Google Consent Mode”Disable/enable the toggleSave your settingsYou 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:Create a new domain group by clicking the button in the top right cornerAdd 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 belowNavigate to “Settings” > “Dialog” and add the desired banner configurationsCookiebot WordPress settings:Open the Cookiebot CMP pluginOpen “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 settingsHave any questions? please let us know. Happy to help you further with your implementation.