我需要知道为什么我的购买交易没有存储在Google Analytics(分析)中,Google跟踪代码管理器的预览显示我将enableEcommerce设置为false,但是正如您所看到的,我已在Google Analytics(分析)中将此设置为ON。
在遵循了文档之后,我仅在“谢谢”页面中拥有此dataLayer:
如你看到的:
1)我正在生成产品Array,
2)标签已正确触发。
3)enableEcommerce:false
第3点对我来说还不清楚,因为我启用了电子商务:
enableEcommerce:错误
更新1
基于kgrr的答案,这是我当前的设置。
事件引发
dataLayer: _
dataLayer(第一个字段名称)
Google Analytics TAG Variable
UPDATE 2
Not as conversion:
Based on all the details, you have shared, there a few errors, that you should fix, to get your purchase tracking working.
Your tracking ID is incorrect. You can provide a tracking ID either by adding it directly as a Tracking ID, or adding it as part of a Google Analytics Setting variable. (Where it will be provided similarly as Tracking ID). At the moment, you pass your Google Analytcs Settings variable into the tracking ID field. As you have already prepared this type of variable, I suggest to use it in its proper place, but remove tracking ID provided from the Google Analytics tag. The only setting to be overwritten, is the enhanced ecommerce setting. (As it seems from the images.)
Your purchase object is not following the enhanced ecommerce format. Based on the documentation, the products
array is part of the purchase
object. At the moment, they are siblings in your code, so GTM won't be able to process, and append it to the event.
Your product objects are not following the enhanced ecommerce format. At the moment, you are not using the proper keys in your product objects, so GTM won't be able to pass this data to Google Analytics. This is a general reference about the product data, and this is a working example, how various attributes are passed to GTM. You should fix the key-value pairs to match the format requested by GTM.
更新:另外,您还必须确保在Universal Analytics代码或Google Analytics(分析)设置变量中启用了增强型电子商务功能。如果未启用,则GTM会忽略此数据。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句