Web应用程序Firebase分析中的同意模式
是否可以为Firebase Analytics(GA4)JS SDK(Web应用程序)设置同意模式?该文档似乎仅适用于移动应用程序。如果没有,还有其他方法可以关闭其符合GDPR的饼干吗?
Is it possible to set Consent Mode for Firebase Analytics (GA4) JS SDK (web app)? The documentation seems to be only for mobile apps. If not, is there any other way to turn off their cookies for GDPR compliance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个
setConsent
方法记录在这里。setConsent()
在初始化Firebase Analytics(初始化Firebase Analytics)的所有GTAG参考中,将此Web应用程序的最终用户同意状态设置。
使用共识来指定个人同意类型值。默认情况下,同意类型设置为“授予”。
There is a
setConsent
method documented here.setConsent()
Sets the applicable end user consent state for this web app across all gtag references once Firebase Analytics is initialized.
Use the ConsentSettings to specify individual consent type values. By default consent types are set to "granted".