GA4不认识电子商务'范围
为了收集电子商务数据,我使用GTM创建了一个GA4数据层。
价值,运输,税收和物品。如下('item'参数只是测试)
所有其他参数都做得很好,但'项目'
GA4均未识别电子商务项目的参数。 我找不到解决方案。 你知道为什么吗?
To collect e-commerce data, I created a Ga4 data layer with GTM.
value, shipping, tax and items. as below ('item' parameter is just test)
But my GA4 doesn't recognize the 'items' parameter ONLY. Look at the picture below
all of other parameters are doing well, but not 'items'
GA4 does not recognize the ecommerce 'items' parameter.
I can't find a solution.
Do you know why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
仅适用于项目数组中一个项目的一种方法是为项目数组的每个组件定义数据层变量。
为项目数组的每个组件定义数据层变量的示例
不要忘记检查图像上的最后一个参数配置。电子商务;检查发送电子商务数据,然后选择Datalayer。
埃尔南
One way that works for only one item in the items array, is by defining a datalayer variable for each component of the items array.
Example defining a datalayer variable for each component of the items array
Dont forget to check the last parameter configuration on the image. Ecommerce; check Send ecommerce data, and select Datalayer.
Hernan
也许当您在Datalayer中定义变量“项目”时,您会缺少“ []。
发生这种情况时,变量项目被识别为“对象”,您需要一个“数组”。您可以在变量部分中使用标签助理检查此调试。
这发生在我多次上,您可以纠正定义自定义Java脚本变量的数据层以将“ []”添加到变量中。
项目:[{item_id:'xxxxx',item_name:'yyyy',...]}
祝你好运!
安德烈斯
Perhaps you are missing the "[]" when you define the variable "items" in the dataLayer.
When this happens, the variable items is recognized as an "object" and you need an "array". You can check this debugging with tag assitant in variables section.
This happens to me many times and you can either correct the data Layer of define a custom java script variables to add the "[]" to the variable.
items: [{ item_id: 'xxxxx', item_name: 'yyyy' , ... ]}
Good luck!
Andrés