tinesoft / ngx-cookieconsent

Cookie :cookie: Consent module for Angular.
https://tinesoft.github.io/ngx-cookieconsent/
MIT License
164 stars 35 forks source link

[EU] GDPR compliant cookie banner #141

Closed TobiasJu closed 6 months ago

TobiasJu commented 6 months ago

Is your feature request related to a problem? Please describe

Hi, I am from Europe and we have this thing called GDPR. Under it the cookie banner has to have the option to opt in or out of cookies. Our lawyer told us, simply allow all is not enough choice.

We have these cookie categories:

Describe the idea you'd like

In the content section just add some config options like, which will result in a toggle switch like:

content: {
  allow: 'Allow all cookies'
  ...
  essentialToggleLabel: 'Allow essential cookies', 
  optimizationToggleLabel: 'Allow external media and analysis',
  marketingToggleLabel: 'Allow marketing cookies'
}

Describe alternatives you've considered

I need to switch to a different cookie banner library. I know I am only one guy, but for the other guys from the EU you should consider adding a few toggles, for optional cookies. The fines for not using a GDPR compliant cookie banner are insane. Thanks!

Additional context

No response

TobiasJu commented 6 months ago

So as Hotfix I removed all external cookies and only allowed one category after consent, to made it compliant.