Comments (6)
Thanks everyone, I'm working on an updated guideline for this, will update here once it's online!
from klaro-js.
Official guide, in case somebody needs it: https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced
from klaro-js.
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.
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.
@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.
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)
- How to wait until user accept/decline HOT 2
- Custom styles without delay before styles load HOT 2
- How can I call a function if user accepts or rejects the cookies?
- Klaro does not work properly on Brave when mustConsent: true
- <svg><script></script></svg> is causing Uncaught TypeError: r.src is undefined when library is aggregated
- klaro cookie is not set on Drupal CMS site HOT 2
- Cannot read properties of undefined (reading 'focus') HOT 2
- Inquiry Regarding Current Maintenance Status of Repository HOT 2
- ExpiresAfterDays problem. Cookie expire after 7 days. HOT 1
- Elements with role="dialog" or role="alertdialog" do not have accessible names.
- Do not remove ID attribute from SCRIPT tags
- Cookie paywall support
- Hotjar cookie not being removed
- Default setting for accepting a service
- If services are not grouped by purpose the input elements get a tabindex -1
- Cookie don't save settings
- "No translation" build contains all the translations HOT 1
- Annotated config has a typo
- Consent notification is not flexing correctly on small screens HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klaro-js.