pressidium / pressidium-cookie-consent

🍪 Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.
https://wordpress.org/plugins/pressidium-cookie-consent/
GNU General Public License v2.0
45 stars 2 forks source link

Default granted cookies become denied after accepting the cookies #86

Open Earntor opened 1 month ago

Earntor commented 1 month ago

Hey developer,

Here I am again. Somehow, when I accept all the cookies, some become granted, and some become denied (even when they were granted on default). image

Not sure how this happens. Could you please look at this?

over-engineer commented 1 week ago

Hey, @Earntor!

It looks like you’ve selected the “Hide empty categories” option without setting any cookies for the “Necessary” and “Preferences” cookie categories under the “Cookies” tab.

Here’s the mapping we use between our plugin’s cookie categories and GCM’s consent types:

Cookie category Google Consent Mode type(s)
Necessary functionality_storage and security_storage
Preferences personalization_storage
Analytics analytics_storage
Targeting ad_storage, ad_user_data and ad_personalization

In most cases, you should list the cookies your website sets under the “Cookies” tab for any category requiring user consent. Later additions to a category will trigger a re-consent prompt if the “Re-consent” option is enabled.

Alternatively, you could turn off the “Hide empty categories” under the “General” tab, though this will cause the “Necessary” and “Preferences” categories to appear in the cookie settings modal.

Let me know if that fixed it for you 🙂