Alex-D / Cookies-EU-banner

1kb vanilla JS script which manages cookies consent banner display like asked by GDPR

Home Page:http://alex-d.github.io/Cookies-EU-banner/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookie strap remains on all pages until you accept/reject

robertcreaner opened this issue · comments

Hi Alex,

I have the cookie banner code in my index.html and it's working fine but I want the banner to remain across my entire site until the user actually responds to it. Right now when I navigate to a different page it disappears. Do I need to put the cookie banner on every page? Is the functionality there to hide the cookie banner when its responded to on the previous page?

Thanks,
Robert.

Hi!
You need to have both the script and the HTML code on each page, then you can take a look at the Options part of the doc : http://alex-d.github.io/Cookies-EU-banner/#documentation

What you need is the only one option of the plugin :)