Alex-D / Cookies-EU-banner

1kb vanilla JS script which manages cookies consent banner display like asked by GDPR
http://alex-d.github.io/Cookies-EU-banner/
MIT License
441 stars 57 forks source link

Banner removed on refresh #39

Closed jenstornell closed 6 years ago

jenstornell commented 6 years ago

If I don't accept or deny the banner but instead refresh the page, the banner is gone. So now my GA code runs even without approving the cookies.

What I noticed what that except the ga cookies, there was hasConsent: true. Not sure if that has something to do with it?

jenstornell commented 6 years ago

I missed an option. I still think it's "dangerous" to leave it to false as default.

Alex-D commented 6 years ago

Yep, it was OK before RGPD but it has changed a little bit, so now we should wait the user click on something before consider he navigates.