Tracking

Cookiebot: setup in WordPress, Shopify and Tag Manager

Cookiebot is a consent platform from Usercentrics, known as a CMP (consent management platform). It scans your website for cookies and other tracking technologies, shows the banner, stores the visitor's answer and passes that answer on to your tags. Cookiebot itself promises a banner in five minutes. The banner isn't the setup, though. The setup is finished when every tag on the site follows the answer. I believe consent is the first link in measurement. If it goes wrong there, every number in your conversion tracking is wrong. The rules for the banner itself are in our guide to cookie banners and the Danish cookie rules. I checked everything below with the vendors themselves on 28 November 2026. This article isn't legal advice.
Hands on a laptop at the meeting table with a printed mood board in front
→ All articles

What is Cookiebot, and what does it do?

Cookiebot does four things: it scans, asks, stores and passes on.

  • Scans. Cookiebot goes through the site every month and finds cookies, scripts, iframes and pixels. It sorts them into necessary, preferences, statistics and marketing. The rest are listed as unclassified (Cookiebot's walkthrough of the scan report).
  • Asks. The banner gives the visitor the choice.
  • Stores. The answer sits in a cookie in the visitor's browser and in a consent log at Cookiebot (Cookiebot's description of the consent log).
  • Passes on. Cookiebot holds back non-necessary cookies until the visitor has said yes, and passes the answer on to Google's tags. How that happens depends on the setup.

Cookiebot doesn't catch cookies in mid-air. It switches off the element that sets the cookie until it knows the answer.

What does a proper Cookiebot setup take?

A proper Cookiebot setup takes knowing what holds each tag back. Cookiebot describes two main routes:

  • Automatic blocking. Cookiebot sits in the page's code and checks every other script before it runs. Here, Cookiebot must be the first script the page loads (Cookiebot's guide to automatic blocking).
  • Control in Google Tag Manager. You control tags with consent requirements and triggers in Tag Manager. Here, Cookiebot's tag must fire first (the Consent Initialization trigger). If you load Cookiebot through the template in Tag Manager, you can't use automatic blocking, because Tag Manager loads tags asynchronously, says Cookiebot in its guide to load time.

Cookiebot also describes a combination where Cookiebot in the page's code takes care of the rest (Cookiebot's guide to Tag Manager and automatic blocking). In that case, Cookiebot must not also be loaded by a tag in Tag Manager. Four requirements apply whichever route you take:

  • Only once. Cookiebot may only sit in one place on the site.
  • Scan finished. The first scan takes up to a day. Only then do you know which cookies the site sets.
  • No cookies without a category. Give unclassified cookies a category. An element that only sets unclassified cookies isn't blocked automatically, and the report flags it as an error.
  • The server counts too. Cookiebot runs in the browser. Cookies your web server sets have to be held back in the server's own code.

How do you set up Cookiebot in WordPress?

In WordPress, you set up Cookiebot with Cookiebot's own plugin. The steps are in Cookiebot's guide to WordPress.

The plugin can also insert Google Tag Manager for you, so the page loads scripts in the right order. And it passes the answer on to the WP Consent API, says Cookiebot on the plugin's page at WordPress.org.

This is where it goes wrong in WordPress:

  • Cookiebot twice. The plugin loads Cookiebot, and a Cookiebot tag in Tag Manager does it again.
  • Plugins that set cookies from the server. WP Consent API describes the problem itself: if a plugin sets a cookie in PHP, a consent plugin can't stop it. The API only works for plugins built for it.

How does Cookiebot work in Shopify?

In Shopify, Cookiebot works through Shopify's Customer Privacy API, which passes the answer on to Shopify's own surfaces, such as pixels, audiences and checkout. That's necessary because Shopify loads its own scripts before Cookiebot gets there. Cookiebot itself says the API doesn't block cookies before consent. It only turns them into session cookies.

Cookiebot recommends its own Shopify app over manual installation in the theme. The app sends the answer to the Customer Privacy API itself. If you install manually, you have to add that code yourself. The steps are in Cookiebot's Shopify help.

This is where it goes wrong in Shopify:

  • Two banners. According to Cookiebot, Shopify's own banner can conflict with Cookiebot. Only one consent solution should be active at a time.
  • Regions don't match. Shopify asks you to choose the same consent regions in Shopify's settings and in the app. If they don't match, non-necessary data can be processed before the visitor has given consent (Shopify's help on customer privacy).
  • Tag Manager in a Custom Pixel. Shopify's pixels run in a sandbox that stops consent from being shared with the page. If you install Cookiebot through Tag Manager, Tag Manager must sit directly in the theme and not in a Custom Pixel or an app, says Cookiebot. The theme covers the shop's pages, not checkout.
  • Checkout without a banner. According to Cookiebot, third parties can neither show a banner nor add code in checkout. There, the answer from the shop's pages applies. Shopify controls tracking in checkout based on what's stored in the Customer Privacy API.
  • Apps. Apps in the shop can set their own cookies, and according to Cookiebot that can't be prevented without breaking the app. Conversely, Cookiebot's blocking can stop an app's requests before the visitor has answered, for example in a booking app.

How do you set up Cookiebot through Google Tag Manager?

Through Google Tag Manager, you set up Cookiebot with Cookiebot's template from the Tag Manager gallery. The tag gets the Consent Initialization trigger, which according to Google's help on consent in Tag Manager always fires before all other tags. The steps are in Cookiebot's guide to Google Tag Manager.

Google's own tags, such as Google Ads and Analytics, have a built-in consent check. They load regardless of consent and send data to Google, says Cookiebot. If you don't want that, you can give them a consent requirement too. All other tags that track need a consent requirement in the tag and a trigger on Cookiebot's cookie_consent_update event instead of All Pages.

This is where it goes wrong in Tag Manager:

  • All Pages left in place. Tag Manager doesn't reassess a tag with a consent requirement on All Pages when the answer arrives. So the tag doesn't fire on the first page, unless the visitor answered on an earlier visit.
  • Everything outside Tag Manager. Tag Manager doesn't control scripts, images and iframes that sit directly in the page's code. You have to mark those up one by one.

What does Cookiebot have to do with Consent Mode?

You switch Consent Mode on and off through Cookiebot: with a tick box in Cookiebot's tag in Tag Manager or a toggle in the WordPress plugin. Cookiebot then sends the signals to Google itself when the visitor answers. You have to make sure the default, which applies before an answer is given, is set yourself, says Cookiebot. How depends on the installation. In Tag Manager, Cookiebot's tag sets it based on the tag's settings, and in WordPress it comes with Consent Mode once it's switched on in the plugin. If Cookiebot sits directly in the page's code, you add a script with the default before Google's tags yourself, says Cookiebot in its guide to Consent Mode. What the signals mean, and what a no does to measurement, is in our article on Consent Mode.

How can you tell Cookiebot is working?

You can see it in four places.

  1. The scan report. Cookiebot advises you to read it every month. Look for unclassified cookies and for the line "Blocked until accepted by user: No".
  2. Google Consent Mode Check. Cookiebot's own check shows whether the default is set, whether the banner passes the answer on, and whether Google sets tracking in the browser before consent. Cookiebot itself says a clean result doesn't prove everything is in order (Cookiebot's description of the check).
  3. Tag Assistant. Google's tool shows the default, the update after the answer and which tags fired or were blocked (Google's guide to verifying consent status).
  4. A private window. Open the site in a private window, and check under cookies in the browser's developer tools what's there before you've answered.

How Amplify works with Cookiebot

Amplify is a partner of Stape and Cookiebot, and our own standard for measurement is built on the two.

We don't hand over any setup we haven't tested ourselves with both a yes and a no. A no has to hold all the way: in the browser, in the platform's own systems and on the server. If an ad platform reports more purchases than you've sold, we don't trust the number until we've found the error.

If you'd like us to set up Cookiebot for you or review your setup, contact Amplify. You get the price in black and white before we start. If you'd rather get started yourself, you can create a Cookiebot account through our partner link: Amplify may earn a commission, and anyone who creates an account via the link gives Amplify access to their setup.

Frequently asked questions about Cookiebot

Is Cookiebot enough to comply with the cookie rules?

Not on its own. Cookiebot itself says the tool covers the technical side: scanning, blocking, banner and consent log. The rest depends on your privacy policy and on how you process visitors' data. Cookiebot itself advises having a lawyer look at the setup.

Does Cookiebot work with server-side tracking?

Only if you set it up yourself. Cookiebot runs in the browser and can't block what a server sends, says Cookiebot about its Shopify app. A server container can follow the consent signals from the browser when you set it up to do so. Read more in the guides to server-side tracking and Stape.

Your next step

Log in to Cookiebot today and open the latest scan report. Search for "Blocked until accepted by user: No" and for unclassified cookies. If anything shows up, check in a private window whether the cookie is also there before you've answered. If you can't explain why it's there, the setup isn't finished.

Ready to grow? Let’s talk

→ Book a chat