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
439 stars 57 forks source link

Bar doesn't show up #41

Closed UisgeBeatha436 closed 5 years ago

UisgeBeatha436 commented 5 years ago

Followed the install instructions. Used npm to install. However the bar doesn't show, but as soon as I remove the 'display: none;' the bar shows up. What can I do to investigate?

Thanks!

Alex-D commented 5 years ago

Hey, did you follow Readme instructions? Did you put ids as needed (cookies-eu-banner)?

Show a sample HTML of your code please.

UisgeBeatha436 commented 5 years ago

Thanks for your reply. Did follow the instructions. Please have a look at both screenshots.

schermafbeelding 2018-11-19 om 08 22 45 schermafbeelding 2018-11-19 om 09 36 07
Alex-D commented 5 years ago

Did you have Do Not Track enabled?

I think you are here:

https://github.com/Alex-D/Cookies-EU-banner/blob/master/src/cookies-eu-banner.js#L36-L38

UisgeBeatha436 commented 5 years ago

Yep, after allowing the tracker, the bar showed up. Thanks!

UisgeBeatha436 commented 5 years ago

Sorry to re-open. Took the example code from Github, including the links, installed according, I do see "LOAD GA", but no bar is showing up. Site is based on Bootstrap Twitter and on localhost.

Do you have any suggestions what I can to get the bar to show up?

Thank you!

Alex-D commented 5 years ago

If the callback is running, that means you need to clean the consent cookie to show back the bar.

UisgeBeatha436 commented 5 years ago

Thanks. I've been looking for the consent cookie, however I'm not sure about the name. Could you post the name of the cookie? Thanks.

Alex-D commented 5 years ago

hasConsent as you can see here: https://github.com/Alex-D/Cookies-EU-banner/blob/1.2.16/src/cookies-eu-banner.js#L25

UisgeBeatha436 commented 5 years ago

Thanks 👍