Cookiebot banner keeps showing up on page refresh

Answered

Comments

4 comments

  • Hi Timm,

    If you like, you could send me the domain at e.zaharieva@vconnect.dk or post it here, so I can check it and help you solve this issue afterwards.

    Regards,
    Elina

    0
    Comment actions Permalink
  • Avatar
    Timm H

    Hi Elina, thanks for the quick response!

    I'll just post it here, maybe other people would like to check it aswell.

    The domain is: test.v22018054023665787.supersrv.de

     

    Regards,

    Timm

     

    0
    Comment actions Permalink
  • Hi Timm,

    There is a script in your website, that is overriding the "document.cookie" function. The Cookiebot Banner should work properly if you remove the following script from the website:

    <script>

    window.onload=function(){

    if(!document.__defineGetter__) {

    Object.defineProperty(document, 'cookie', {

    get:function(){return''},

    set:function(){returntrue},

    });

    } else {

    document.__defineGetter__("cookie", function() { return'';} );

    document.__defineSetter__("cookie", function() {} );

    }

    }

    </script>

    Regards,
    Elina

    1
    Comment actions Permalink
  • Avatar
    Timm H

    Hello Elina,

    first, I want to apologize for my delayed response. I totally forgot to check for responses in that thread.
    The solution you provided worked. I am very thankful for your response! :)

     

    Best regards,

    Timm

    0
    Comment actions Permalink

Please sign in to leave a comment.