运行gtm.js脚本没有任何cookie并在用户同意cookie之后激活它们
是否可以?
我正在使用Drupal 9中的Cookie模块,我必须强迫GTM.JS运行,这效果很好,但是此脚本仍然在未经用户同意的情况下生成cookie
Is it possible?
I'm using cookies module in Drupal 9 and I had to force gtm.js to run, which works fine, but this script still generate cookies without user consent
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下,Google标签管理器未设置cookie。如果GTM设置了cookie,则只有当有一些标签和脚本通过GTM - >然后,除非用户同意cookie,否则您需要将它们阻止在GTM中。
但是:有一种情况,gtm.js设置了cookie->如果您处于预览模式。
By default Google Tag Manager does not sets cookies. If GTM sets cookies, then only if there are some tags and scripts running through GTM -> then you need to block them within GTM unless user agrees to cookies.
BUT: There is one scenario, where gtm.js sets cookies -> if you are in preview mode.