Cookiebot banner keeps showing up on page refresh
AnsweredHey folks,
I have a problem regarding the Cookie banner. It seems like Cookiebot is not saving the user's preferences. So if you opt-in/out and refresh the page the banner shows up again. Also on the homepage I'm not able to see how many users did accept or decline cookies.
I am not quite sure whether this is a "bug" or I just made a mistake implementing it.
I really hope somebody is able to help me. Thanks in advance!
- Timm
-
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,
Elina0 -
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 -
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,
Elina1 -
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
Please sign in to leave a comment.
Comments
4 comments