PDA

View Full Version : Using CookieConsent


weinstoc
05-07-2018, 11:53 PM
Elsewhere I found the following code which at least someone claims has worked with VB3. I cannot figure out which template(s) to install it in, and where. This is for GDPR compliance. Can someone point me in the right direction?

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#000"
},
"button": {
"background": "#f1d600"
}
}
})});
</script>

Seven Skins
05-10-2018, 08:46 PM
Try adding this to footer template.

PinkMilk
05-12-2018, 01:53 PM
Cookie Consent by Insite (https://cookieconsent.insites.com/download/) website states:
Add the code in the header of your website, just before the </head> tag. so it should be placed in the headinclude template.

Seven Skins
05-12-2018, 06:55 PM
For best page load speed js should be loaded from footer as it will not block any DOM content from loading.