I found a third party site that enables me to place a pop-up window on my site notifying visitors of the use of cookies and the choice to accept/deny. When placing the code I am receiving a "parsing error unexpected token" message of which I do not understand. I am very new to coding so please keep it simple. The code was written by Cookie Consent and is pasted below:
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#aa0000",
"text": "#ffdddd"
},
"button": {
"background": "#ff0000"
}
},
"position": “centre”,
"type": "opt-in",
"content": {
"dismiss": "Decline",
"allow": "Accept"
}
})});
</script>
Can anyone see why this would not work on my site?
Thanks :)
Maybe something to think about...
I´m sorry...the screenshot of the ePrivacy regulation was a proposal (draft). The ePrivacy regulation will eventually take effect someday 2019 or later...
Hi,
Unfortunately that isn't an option right now, feel free to post a feature request here.
Damn it, than you.
@ mandy.achungo
I've been asking Wix for a while if there is a way to allow user to opt out of non-essential cookies on Wix websites, however I have never gotten a response which leads me to believe that it is not possible.
https://www.wix.com/code/home/forum/community-discussion/opt-out-of-various-types-of-cookies