Disclaimer cookiebot not shown on page
We have an Angular webapplication and we are trying to implement cookiebot.
The popup (for giving consent) is working, but on my disclaimer page nothing is shown.
My page looks like this: (i changed the id to 0000 etc)
<html>
<head>
...
</head>
<body>
<script id="CookieDeclaration" src="https://consent.cookiebot.com/00000000-0000-0000-0000-000000000000/cd.js" type="text/javascript" async></script>
</body>
</html>
-
I found this error in developer tools of my Chrome Browser:
Uncaught TypeError: Cannot read property 'insertBefore' of null
at CookieControl.Cookie.postponeMutation (uc.js:1)
at MutationObserver.mutationHandler (uc.js:1)0 -
Hi,
This issue happens because the script can not find the script it wants to insert the content in front of. This is caused by a wrong id used inside the cookie declaration scrpt. It should be id="cookiedeclaration", not "CookieDeclaration".
Could you please try to change the id and see if the cookie declaration is displayed properly.
Regards,
Spas0 -
I still have the same error:
<html>
<head></head>
<body>
<div>
Hello World
</div>
<div>
<script id="cookiedeclaration" src="https://consent.cookiebot.com/00000000-0000-0000-0000-000000000000/cd.js" type="text/javascript" async></script>
</div>
</body>
</html>When I look in the source, I cannot see the script with id cookiedeclaration, i thought maybe deployment went wrong, hence the Hello World to see if the deployment works.
0 -
Check this out: https://www.npmjs.com/package/@halloverden/ngx-cookiebot
0 -
Hi!
I have created a new GCLUB site and want to install a cookies system on it. Please tell me how it will be applied and how cookies are saved.
0
Please sign in to leave a comment.
Comments
5 comments