klaro-org / klaro-js

Klaro Privacy Manager. An open-source, privacy-friendly & compliant consent manager for your website.

Home Page:https://klaro.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Consent Mode v2

Lynn-777 opened this issue · comments

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.

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.

@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.

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

Our usecase:

  • Allow ga cookie when user loads the page (default: true & optOut: true).
  • Keep gtags values to declined.
  • If user clicks on "Accept", then change the gtags values to enabled.

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".

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!