gdpr-cookie-consent-banner
gdpr-cookie-consent-banner copied to clipboard
A GDPR compliant cookie consent banner implementation
It took me a while to figure out how to add a "reject cookies" button. Turns out it's already implemented and can be used like this: `` It would be...
EventListener can't work in HTML / Web Comments. No event is dispatched. ```javascript document.getElementsByTagName('cookie-consent-banner')[0].addEventListener('analytics', () => { // some fathom analytics tracking code or similar }) // We also emit...
As far as I can see it, the `Accept cookies` button is actually a `Save` button. If a user adjusts their preferences, clicking on `Accept cookies` won’t accept (all) cookies,...
Refactor buttons to make clear what they are doing. Rename `Accept cookies` button to `Accept selected` (since that’s what the called `choose()` function is doing) and add a new `Accept...
This PR adds the `agreed` status (`true` or `false`) to both the component and window consent events. It enables to check whether consent was given or rejected. If a user...
in HTML / Web Components mode props show-edit-icon does not respect the value ```html ``` Icon to edit cookies preferences always show.
In my case Edge and Google Chrome is working but Brave Browser doesn't display the banner. 78.95 million Brave Browser users in May 2024, so somelike important that this will...
Are there plans to support Svelte 5?