Skip to main content

Disclaimer cookiebot not shown on page

Comments

5 comments

  • Jeroen van Rijt

    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,
    Spas

    0
  • Jeroen van Rijt

    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
  • marry adam

    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.