Giter Site home page Giter Site logo

Google Consent Mode v2 about klaro-js HOT 6 CLOSED

Lynn-777 avatar Lynn-777 commented on August 16, 2024 3
Google Consent Mode v2

from klaro-js.

Comments (6)

adewes avatar adewes commented on August 16, 2024 2

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

from klaro-js.

liayn avatar liayn commented on August 16, 2024 1

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

from klaro-js.

adewes avatar adewes commented on August 16, 2024 1

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!

from klaro-js.

bojko91 avatar bojko91 commented on August 16, 2024

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.

from klaro-js.

kocjs avatar kocjs commented on August 16, 2024

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

from klaro-js.

corentinbettiol avatar corentinbettiol commented on August 16, 2024

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

from klaro-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.