# Possible reasons for CookieBot integration not working?

**URL:** <https://community.piwik.pro/t/possible-reasons-for-cookiebot-integration-not-working/4926>\
**Category:** API & integrations\
**Created:** [February 21, 2025, 8:35am UTC](https://community.piwik.pro/t/possible-reasons-for-cookiebot-integration-not-working/4926 "2025-02-21T08:35:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonerator](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/gonerator/32/3549_2.png) [@gonerator](https://community.piwik.pro/u/gonerator)\
**Post date:** [February 21, 2025, 8:35am UTC](https://community.piwik.pro/t/possible-reasons-for-cookiebot-integration-not-working/4926/1 "2025-02-21T08:35:18Z")

</div>

Hi! I wanted to use the CookieBot integration [available here](https://help.piwik.pro/support/integrations/cookiebot-integration/) but I’m getting an error:

![CleanShot 2025-02-21 at 09.32.25](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/c/c6702799d2c654eee21e6de044c57d0a8fe2f1c8.png)

I was using it before on other websites and it worked just fine. I deployed it in the same way as I used to do before.

What could be possible reasons for getting this output? Thanks in advance for any tips!

---

<div class="post-metadata">

**Author:** ![Daniel\_Twork](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/daniel_twork/32/498_2.png) [@Daniel\_Twork](https://community.piwik.pro/u/Daniel_Twork)\
**Post date:** [February 27, 2025, 1:25pm UTC](https://community.piwik.pro/t/possible-reasons-for-cookiebot-integration-not-working/4926/2 "2025-02-27T13:25:49Z")

</div>

Hi, is the project you are running on with this integration available online? I would like to take a look.

The error you received is returned when Cookiebot does not exist/ not defined. We check it with a condition:

```auto
typeof window.Cookiebot === 'undefined' || window.Cookiebot === null || Object.keys(window.Cookiebot).length === 0

```

It looks as if Cookiebot is misconfigured, or maybe it is blocked for some reason.  
Does the domain on which you are trying to run cookiebot appear on the Cookiebot whitelist? (I mean the cookiebot settings)

---

<div class="post-metadata">

**Author:** ![gonerator](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/gonerator/32/3549_2.png) [@gonerator](https://community.piwik.pro/u/gonerator)\
**Post date:** [March 5, 2025, 9:14am UTC](https://community.piwik.pro/t/possible-reasons-for-cookiebot-integration-not-working/4926/3 "2025-03-05T09:14:12Z")

</div>

Hi @Daniel_Twork! Thanks for your answer and apologies for my delayed response 🙂

I sent you the address of the site I’m working on through the DM here.

I did check for the presence of the Cookiebot window object - not there.  
Cookiebot is installed properly and it does work without any issues. It’s just it seems that the script of Piwik integration doesn’t work for “this” Cookiebot deployment.

My feeling is that the Cookiebot made some upgrade of their mechanisms on the front end. The setup in Cookiebot panel (UserCentrics UI) is currently looking much different than it did for previous sites I deployed. Also, events on dataLayer sent by Cookiebot now look different compared to what I remember from previous setups. I will be thankful for any info whether Cookiebot script from Piwik docs can be run somehow 🙂 cheers!

---

<div class="post-metadata">

**Author:** ![gonerator](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/gonerator/32/3549_2.png) [@gonerator](https://community.piwik.pro/u/gonerator)\
**Post date:** [March 13, 2025, 10:18am UTC](https://community.piwik.pro/t/possible-reasons-for-cookiebot-integration-not-working/4926/4 "2025-03-13T10:18:51Z")

</div>

Hi, any info on this one?

---

<div class="post-metadata">

**Author:** ![justine](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/justine/32/4290_2.png) [@justine](https://community.piwik.pro/u/justine)\
**Post date:** [May 14, 2025, 4:36pm UTC](https://community.piwik.pro/t/possible-reasons-for-cookiebot-integration-not-working/4926/5 "2025-05-14T16:36:32Z")

</div>

Hey!  
Did you get any update on this? 🙂  
Thank you in advance!
