dargmuesli / nuxt-cookie-control

A highly configurable cookie banner for Nuxt.
MIT License
229 stars 43 forks source link

feat: customizable cookie groups #216

Open agracia-foticos opened 3 months ago

agracia-foticos commented 3 months ago

Describe the feature

There is two types of cookies:

necessary and optional.

Please allow add new group custom cookies.

In a lot of websites, the cookies are grouped like "necesary", "ads", "analytics", "geo", etc... not only 2 "static" group of cookies (necesary and optional)

Additional information

Final checks

dargmuesli commented 3 months ago

PRs welcome!

agracia-foticos commented 3 months ago

here you are an example of other consent banner cookies with custom categories https://cookieconsent.orestbida.com/reference/configuration-reference.html#categories

agracia-foticos commented 3 months ago

Or maybe extend, not only optional and necessary. Extend to

agracia-foticos commented 3 months ago

image Extend in this enum to :

export declare enum CookieType { NECESSARY = "necessary", FUNCTIONALITY = "functionality",
ANALYTICS = "analytics", MARKETING = "marketing" }

dargmuesli commented 3 months ago

I think the categories should be configurable eventually, as configurability is a goal of this project.

agracia-foticos commented 3 months ago

I think the categories should be configurable eventually, as configurability is a goal of this project.

@dargmuesli Do you know when you will implement this configurability?

dargmuesli commented 3 months ago

Yes, I won't implement this feature myself, that's why I wrote "PR welcome" and tagged this issue with the "help wanted" label.

agracia-foticos commented 3 months ago

@dargmuesli I create new pull request to fix this issue