如何重新启用Google Analytics(Onetrust)?
在我的应用程序上使用ontrust函数进行测试,我使用了ontrust.blockgoogleanytics(),现在我看不到数据层在GTM/GA调试器扩展程序上推出。
在哪里,如何恢复此命令?我希望能够将功能虚假,但这不起作用。
Testing around with OneTrust functions on my application I used OneTrust.BlockGoogleAnalytics() and now I can not see the data layer pushs on the GTM/GA Debugger extension.
Where, how do I revert this command? I expected to be able to give false to the function, but that don't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需清除您的饼干和本地存储即可。
但这不应阻止您的数据层推动。从一个信任那里有点太多了。也许您将DL推送与发送的实际事件混合在一起。
另外,一个信任给出关于如何使用该功能。似乎该函数接受了两个ARG。我不确定它是否无用,但该文档仍然指定如何检查某些跟踪器的状态以查看它们是否被阻止。该部分似乎在他们的文档中被打破了,但是很容易破译
window的含义['ga-disable-$ {gaid}'
Just clear your cookies and local storage.
But it shouldn't block your datalayer pushes. That's a bit too much to expect from one trust. Maybe you're mixing up DL pushes with actual events sent.
Also, one trust gives documentation on how to use that function. It seems like the function accepts two args. I'm not sure if it works with no args, but the documentation still specifies how to check the state of certain trackers to see if they're blocked or not. That part seems to be broken in their documentation, but it's easy to decipher what they meant by
window['ga-disable-${gaID}'