项目对象内的价格不正确
我刚刚从 Universal-Analytic 切换到 Analytic 4,我想通过使用此代码使用“view_item”事件来跟踪产品详细信息视图。正确的价格是 605。
gtag("event", "view_item", {
currency: "JPY",
value: {{ product_price }},
items: [
{
item_id: "{{ Product.jan }}",
item_name: "{{ Product.name }}",
currency: "JPY",
price: {{ product_price }},
}
]
});
除了“items”对象内的“price”属性之外,一切都工作正常。它在我的价格上添加了 6 个零 (000000)
您能告诉我我的代码有什么问题吗?感谢您的帮助!!!!
I'm just switching from Universal-Analytic to Analytic 4 and I want to track the product detail view by using "view_item" event by using this code. The correct price is 605.
gtag("event", "view_item", {
currency: "JPY",
value: {{ product_price }},
items: [
{
item_id: "{{ Product.jan }}",
item_name: "{{ Product.name }}",
currency: "JPY",
price: {{ product_price }},
}
]
});
Everything is working fine except the "price" property inside the "items" object. it add 6 zero (000000) to my price
Please check the debug view screenshot for more detail
Could you please tell me what's wrong with my code? Thanks for your help!!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论