Viewing Disable Cookies

Disable Cookies



User: Steve G. 5 years ago
I am located within the EU and use Google analytical on my website, as such EU law dictates that I need to offer our users an option of disabling cookies.

There are a few to choose from online and the one I've chosen is by Insites. Since I need to allow my users to disable cookies and not just acknowledge them there are two parts to installing the cookie banner. The first part (the banner) I'm ok with, but I'm not sure where in ever web to put the second part which they call the callback hook, if it helps the code is:

[code]onInitialise: function (status) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
// enable cookies
}
if (type == 'opt-out' && !didConsent) {
// disable cookies
}
},

onStatusChange: function(status, chosenBefore) {
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent) {
// enable cookies
}
if (type == 'opt-out' && !didConsent) {
// disable cookies
}
},

onRevokeChoice: function() {
var type = this.options.type;
if (type == 'opt-in') {
// disable cookies
}
if (type == 'opt-out') {
// enable cookies
}
},[/code]

Can anyone help with this please?

Last edit 5 years ago
User: EverWeb Support 5 years ago
Hi Steve!

I am not sure either. It depends on their instructions.
I would assume this code should go to the Footer section of the page.
For specific page, it can be found in Inspector > Page settings. For all pages at once, this section can be found in top menu bar > File > Edit publishing settings.

IF you have further questions, could you please submit a support ticket with the exact embedding instructions from Insites? To do so, log in to the Client area and click the blue button "Open New Ticket" on the Welcome page. I'll take it from there and will do my best to help you!

Alex

-------------------------------
EverWeb Customer Support
Submit Tickets or Learn More


Post Reply
You must login or signup to post.