Uncaught TypeError: e.data.replace is not a function at CookieControl.Cookie.handleMessage (uc.js:1) at uc.js:1
I'm getting the below error in Google Chrome:
Uncaught TypeError: e.data.replace is not a function
at CookieControl.Cookie.handleMessage (uc.js:1)
at uc.js:1
I've done nothing other than include the <script> tag in the head.
(For the sake of this post I have obviously replaced the data-cbid value with with XXXXXXXXXXXXXXXXXXXXXXXX below)
<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="XXXXXXXXXXXXXXXXXXXXXXXX" type="text/javascript" async></script>
What's the cause?
Thanks
-
Hey, James
It happens often when the script is accidentally added twice, integration via "google tag manager" and directly in the template "head". So, could you check this first and if this is not the cause you can write a ticket here: mail@cookiebot.com. We always welcome bug reports and we will do our best to resolve this and prevent similar situations from occurring in the future.
Regards,
Martin0 -
Hi Martin
It's happening on Chrome only. Script tag only injected once.
I'll forward a link to this thread to mail@cookiebot.com.
James
0 -
Hey James,
Аpologize for the inconvenience.
Bug fix has been implemented - This problem should be solved now.
The file is cached on the browser for 24 hours, you can test in incognito mode, make a hard refresh of the browser to clear the cache or wait for 24 hours.KR,
Martin0
Please sign in to leave a comment.
Comments
3 comments