【发布时间】:2019-09-24 09:35:44
【问题描述】:
我试图将 cookieyes GDPR 解决方案集成到 WP 网站。以下是网站中添加的 GTM 和 coookieyes 的代码。但是饼干
(_ga , _gid 和 gat_gtag_UA_xxxxxxxxxxx_1)
即使没有点击接受按钮也会被设置。
<?php wp_head(); ?>
</head>
<!-- Start cookieyes banner -->
<script id="cookieyes" type="text/javascript" src="https://app.cookieyes.com/client_data/714e8fa9e198d23xxxxxxxxxx.js"></script>
<!-- End cookieyes banner -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-1" ></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-xxxxxxxxx-1');
</script>
【问题讨论】:
-
欢迎来到 Stack Overflow!您的问题缺少从Stack Overflow 用户那里获得任何帮助的信息。请收下tour,并通读help center,了解How to Ask 好问题吗?最大限度地提高您获得问题答案的机会。如果您遇到特定问题并且遇到困难,请发送问题描述,包括minimal reproducible example,人们会很乐意为您提供帮助。这似乎是一个很好的问题。如需任何帮助,您可以参考以上链接。
-
Cookieyes 现在会在征得同意之前自动阻止这些 cookie
标签: javascript wordpress cookieyes