klaro-org / klaro-js

Klaro Privacy Manager. An open-source, privacy-friendly & compliant consent manager for your website.
https://klaro.org
Other
1.19k stars 253 forks source link

Google Consent Mode v2 #496

Closed Lynn-777 closed 6 months ago

Lynn-777 commented 7 months ago

I am currently looking for instructions on how to correctly implement Consent Mode v2 using Klaro. Do you plan to integrate the necessary parameters into Klaro directly? If not, could you please provide me with guidance on how to manually implement these parameters myself?

Thank you in advance for your assistance.

bojko91 commented 7 months ago

See this: https://measureschool.com/cookie-consent-banner/

IDK if it ok to do with that way "Adding Variables to the Consent State" i put the variables in the new sections that google want. For now i think is working good, but.

kocjs commented 7 months ago

@bojko91 I have tried to follow the above guide. However, in my case the if I deny, and continue to surf, i see google analytics cookies getting added. That should not be. If i navigate the site without accepting or denying the cookie popup does not show up some times.

adewes commented 7 months ago

Thanks everyone, I'm working on an updated guideline for this, will update here once it's online!

liayn commented 7 months ago

Official guide, in case somebody needs it: https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced

corentinbettiol commented 6 months ago

Our usecase:

We went with using the onAccept only when confirm: true (only way to know that the user clicked on the Accept button, found by reading the object properties in the console because it's nowhere on the docs) for setting the gtag values to "enabled".

adewes commented 6 months ago

Hey @liayn, @corentinbettiol, please check out our new tutorial here. It explains how consent mode v2 works with Klaro and gives an example config, I tested with Tag assistant the the new consent settings are propagated correctly.

If you have any other questions please let me know!