在用户同意GDPR时启用/禁用所有cookie [英] Enabling / Disabling All Cookies Upon User Consent for GDPR

查看:219
本文介绍了在用户同意GDPR时启用/禁用所有cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题与GDPR合规性有关,但我将重点放在手头的技术问题上:

This issue is related to GDPR compliance but I'll keep it more focused on the technical issue at hand:

我发现了一些很棒的cookie开源资源同意横幅,例如Cookie同意和Cookie脚本。标语的实现看起来很简单。不过,问题在于它们默认需要禁用Cookie,而我不确定该如何在域的全局级别上执行。

I have found some great open source resources for cookie consent banners, like Cookie Consent and Cookie Script. The implementation of the banner looks simple enough. The issue though is they require cookies to be disabled by default, which I am unsure how to do on a global level on a domain.

我不了解很多JavaScript,但我想知道的是:是否存在使用Javascript的方法来普遍允许或拒绝域中的Cookie ?还是这种方法对于每个有问题的脚本都是唯一的?例如,Google Analytics(分析)具有禁用Cookie的文档。我如何将它们与Cookie,Facebook,Youtube以及所有其他脚本一起使用cookie,并且仅在用户同意后才允许cookie?还是我必须针对每个单独的脚本解决它?

I don't know a lot of JavaScript but what I'm wondering is: Is there a method with Javascript to universally allow or deny cookies on a domain? Or, would this method be unique to each script in question? Google Analytics for example has documentation on disabling cookies. How would I lump that together with Facebook, Youtube, and all the other scripts using cookies and only allow cookies after a user has consented? Or, would I have to address it for each individual script?

换句话说,JavaScript中是否存在一种方法,我可以根据用户的不同来普遍地关闭/打开cookie偏爱?从到目前为止的研究来看,似乎还没有。

In other words, is there a method in JavaScript where I can universally turn off/on cookies depending on user preference? Just from my research so far it seems there is not.

推荐答案


是否存在使用Javascript的方法来普遍允许或拒绝域中的cookie?

Is there a method with Javascript to universally allow or deny cookies on a domain?

否。

这篇关于在用户同意GDPR时启用/禁用所有cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆