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

Banner removed on refresh

jenstornell opened this issue · comments

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?

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

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.