Ecom跟踪未显示在Google Analytics(分析)中

时间:2019-03-18 12:02:02

标签: google-analytics e-commerce analytics google-tag-manager

我通过GTM集成了Google Analytics(分析),现在我正在尝试启用电子商务跟踪。但是,由于某些原因无法正常工作。

*对不起,由于公司隐私,我更改了网址

这是调试代码

Initializing Google Analytics.
analytics_debug.js:24 Loading resource for plugin: ecommerce
analytics_debug.js:24 Loading script: "https://www.google-analytics.com/plugins/ua/ecommerce.js"
analytics_debug.js:24 Running command: ga("create", "UA-100134152-1", {name: "gtm1", cookieDomain: "auto"})
analytics_debug.js:24 Creating new tracker: gtm1
analytics_debug.js:24 Auto cookieDomain found: "bu.com"
analytics_debug.js:24 Running command: ga("gtm1.set", "&gtm", "2wg3b2TCH6J4M")
analytics_debug.js:24 Running command: ga("gtm1.set", "hitCallback", [function])
analytics_debug.js:24 Running command: ga("gtm1.require", "ecommerce", "//www.google-analytics.com/plugins/ua/ecommerce.js")
analytics_debug.js:24 Waiting on require of "ecommerce" to be fulfilled.
analytics_debug.js:24 Registered new plugin: ga(provide, "render", Function)
analytics_debug.js:24 Running command: ga("gtm1.require", "ecommerce", "//www.google-analytics.com/plugins/ua/ecommerce.js")
analytics_debug.js:24 Waiting on require of "ecommerce" to be fulfilled.
analytics_debug.js:24 Executing Google Analytics commands.
analytics_debug.js:24 Registered new plugin: ga(provide, "ecommerce", Function)
analytics_debug.js:24 Running command: ga("gtm1.require", "ecommerce", "//www.google-analytics.com/plugins/ua/ecommerce.js")
analytics_debug.js:24 Plugin "ecommerce" intialized on tracker "gtm1".
analytics_debug.js:24 Running command: ga("gtm1.ecommerce:addTransaction", {id: undefined, affiliation: undefined, revenue: undefined, shipping: undefined, tax: undefined})
analytics_debug.js:24 Running command: ga("gtm1.ecommerce:send")
analytics_debug.js:24 Running command: ga("create", "UA-100134152-1", {name: "gtm2", cookieDomain: "auto"})
analytics_debug.js:24 Running command: ga("gtm2.set", "&gtm", "2wg3b2TCH6J4M")
analytics_debug.js:24 Running command: ga("gtm2.set", "hitCallback", [function])
analytics_debug.js:24 Running command: ga("gtm2.send", "pageview")
analytics_debug.js:24 

analytics_debug.js:24 <unknown>        (&gtm)  2wg3b2TCH6J4M
analytics_debug.js:24 _j1              (&jid)  
analytics_debug.js:24 _j2              (&gjid) 
analytics_debug.js:24 adSenseId        (&a)    1515998799
analytics_debug.js:24 apiVersion       (&v)    1
analytics_debug.js:24 clientId         (&cid)  1152172694.1552546478
analytics_debug.js:24 encoding         (&de)   UTF-8
analytics_debug.js:24 hitType          (&t)    pageview
analytics_debug.js:24 javaEnabled      (&je)   0
analytics_debug.js:24 language         (&ul)   en-us
analytics_debug.js:24 location         (&dl)   https://www.bu.com/thank-you
analytics_debug.js:24 screenColors     (&sd)   24-bit
analytics_debug.js:24 screenResolution (&sr)   1920x1080
analytics_debug.js:24 title            (&dt)   Thank You | Bu
analytics_debug.js:24 trackingId       (&tid)  UA-100134152-1
analytics_debug.js:24 viewportSize     (&vp)   1903x215
iframe.e378e2e8.chunk.js:1 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. 
dataLayer
1.  ecommerce:
1.  purchase:
1.  actionField: {id: 35308, affiliation: null, revenue: 78, tax: 3.9}
2.  products: Array(1)
1.  0: {name: "Buziness Vulnerability Scanning Assessment (ecomtesting.com)", id: 1506425543, brand: "Bu", category: "Bu Product", quantity: 1, …}
2.  length: 1
3.  __proto__: Array(0)

似乎Datalayes正在触发,但是没有数据传递到Console或GA。 请帮助

1 个答案:

答案 0 :(得分:0)

您可能有很多理由来解释您的问题。首先,您确定在您的视图设置中设置了电子商务吗?如果是这样,则可能是格式原因。 例如,如果您的订单ID(在示例中为35308)是作为数字而不是字符串发送的,则您会看到匹配内容,但是Google Analytics(分析)将无法处理您的交易,因为它将无法理解订单ID。

相关问题