Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdprCookiesEnabled event not running on page load #31

Open
Antimated opened this issue Oct 19, 2020 · 3 comments
Open

gdprCookiesEnabled event not running on page load #31

Antimated opened this issue Oct 19, 2020 · 3 comments

Comments

@Antimated
Copy link

Is there a way to trigger the gdprCookiesEnabled event when the user loads the page? As of now the only time this event triggers is when the user accepts the cookies. Is this intentional or am I missing something?

@passatgt
Copy link
Owner

This line should init that event:

document.dispatchEvent(cookiesAcceptedEvent);

@Antimated
Copy link
Author

Yes that's what I thought, but on demo (https://passatgt.github.io/gdpr-cookie-notice) the event isn't dispatched either. Only when you accept the cookies the event dispatches. Also no cookies are removed if I'm not mistaken. Any ideas? @passatgt

@RF1705
Copy link

RF1705 commented Nov 10, 2020

you need to define your Eventistener bevor inluding the Cookie Script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants