Google 跟踪代码管理器自定义事件触发器未触发
我的服务器端谷歌标签管理器容器有问题。我已向网站添加了事件和应该触发的触发器。但它并没有被解雇。请参阅下文了解我的设置方法。
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: "dlv_view_item",
ecommerce: {
items: [{
item_name: "test name",
item_id: "test id",
price: "test price",
item_brand: "test brand",
item_variant: "test variant"
}]
}
});
但是,当使用调试模式进行测试时,我可以看到页面上显示事件,但触发器没有被触发,有人知道可能是什么原因吗?提前致谢。
I'm having an issue with a server side google tag manager container. I've added events to a website and a trigger that should be fired. But it's not getting fired. See below for how I've set it up.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: "dlv_view_item",
ecommerce: {
items: [{
item_name: "test name",
item_id: "test id",
price: "test price",
item_brand: "test brand",
item_variant: "test variant"
}]
}
});
Here you can see that it does show up on the website.
This is how the trigger is set up.
But when testing using the debug mode, I can see the event showing up on the page but the trigger is not getting fired, does anyone know what could be the cause? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论