我有一个AngularJS1.0.7 Web应用程序。我整合了Google Analytics,现在我正在尝试启用电子商务跟踪。但由于某种原因无效。
我不想粘贴所有代码,但如果您需要,请告诉我。我在Chrome中安装了GA调试扩展程序,因此这些是我的跟踪。看起来它正常工作,我没有看到任何错误日志,但是我在Google Analytics的“实时”部分的“转换”部分中看不到任何更新。网页跟踪和事件跟踪正在发挥作用。
GA调试日志:
analytics_debug.js:9 Executing Google Analytics commands.
analytics_debug.js:9 Running command: ga("ecommerce:addTransaction", {id: 7154})
angular.js:5754 Item tracked 7154 1 Velero - Bavaria Cruiser - 37 Velero - Mallorcá (Islas Baleares) 2 1
analytics_debug.js:9 Executing Google Analytics commands.
analytics_debug.js:9 Running command: ga("ecommerce:addItem", {id: 7154, name: "Velero - Bavaria Cruiser - 37"})
angular.js:5754 Transaction pushed Success!
analytics_debug.js:9 Executing Google Analytics commands.
analytics_debug.js:9 Running command: ga("ecommerce:send")
analytics_debug.js:9
Sent beacon:
v=1&_v=j37d&a=2127294561&t=transaction&_s=10&dl=http%3A%2F%2Flocalhost%2Fes&dp=%2Fes%2Freserva-barco&ul=es&de=UTF-8&dt=Yanpy%20-%20Alquiler%20de%20velero%20Bavaria%20Cruiser%20-%2037%20en%20Palma%20de%20Mallorca%2C%20Mallorca%20(Islas%20Baleares)&sd=24-bit&sr=1280x800&vp=1265x354&je=1&fl=17.0%20r0&_u=SCCAAEIRI~&jid=&cid=453263414.1433178376&tid=UA-59702007-2&ti=7154&z=114839439
analytics_debug.js:9 _j1 (&jid)
analytics_debug.js:9 adSenseId (&a) 2127294561
analytics_debug.js:9 apiVersion (&v) 1
analytics_debug.js:9 clientId (&cid) 453263414.1433178376
analytics_debug.js:9 ec:id (&ti) 7154
analytics_debug.js:9 encoding (&de) UTF-8
analytics_debug.js:9 flashVersion (&fl) 17.0 r0
analytics_debug.js:9 hitType (&t) transaction
analytics_debug.js:9 javaEnabled (&je) 1
analytics_debug.js:9 language (&ul) es
analytics_debug.js:9 location (&dl) http://localhost/es
analytics_debug.js:9 page (&dp) /es/reserva-barco
analytics_debug.js:9 screenColors (&sd) 24-bit
analytics_debug.js:9 screenResolution (&sr) 1280x800
analytics_debug.js:9 title (&dt) Yanpy - Alquiler de velero Bavaria Cruiser - 37 en Palma de Mallorca, Mallorca (Islas Baleares)
analytics_debug.js:9 trackingId (&tid) UA-59702007-2
analytics_debug.js:9 viewportSize (&vp) 1265x354
analytics_debug.js:9
Sent beacon:
v=1&_v=j37d&a=2127294561&t=item&_s=11&dl=http%3A%2F%2Flocalhost%2Fes&dp=%2Fes%2Freserva-barco&ul=es&de=UTF-8&dt=Yanpy%20-%20Alquiler%20de%20velero%20Bavaria%20Cruiser%20-%2037%20en%20Palma%20de%20Mallorca%2C%20Mallorca%20(Islas%20Baleares)&sd=24-bit&sr=1280x800&vp=1265x354&je=1&fl=17.0%20r0&_u=SCCAAEIRI~&jid=&cid=453263414.1433178376&tid=UA-59702007-2&ti=7154&in=Velero%20-%20Bavaria%20Cruiser%20-%2037&z=421414866
analytics_debug.js:9 _j1 (&jid)
analytics_debug.js:9 adSenseId (&a) 2127294561
analytics_debug.js:9 apiVersion (&v) 1
analytics_debug.js:9 clientId (&cid) 453263414.1433178376
analytics_debug.js:9 ec:id (&ti) 7154
analytics_debug.js:9 ec:item name (&in) Velero - Bavaria Cruiser - 37
analytics_debug.js:9 encoding (&de) UTF-8
analytics_debug.js:9 flashVersion (&fl) 17.0 r0
analytics_debug.js:9 hitType (&t) item
analytics_debug.js:9 javaEnabled (&je) 1
analytics_debug.js:9 language (&ul) es
analytics_debug.js:9 location (&dl) http://localhost/es
analytics_debug.js:9 page (&dp) /es/reserva-barco
analytics_debug.js:9 screenColors (&sd) 24-bit
analytics_debug.js:9 screenResolution (&sr) 1280x800
analytics_debug.js:9 title (&dt) Yanpy - Alquiler de velero Bavaria Cruiser - 37 en Palma de Mallorca, Mallorca (Islas Baleares)
analytics_debug.js:9 trackingId (&tid) UA-59702007-2
analytics_debug.js:9 viewportSize (&vp) 1265x354
更新 我刚刚注意到在Real-Time的转换部分有一个Objetive或Goal专栏(我不知道它是如何在英文版中显示的,我用西班牙文看到它)。在获取电子商务转化跟踪信息之前,是否需要配置Objetive?
答案 0 :(得分:0)
无法在实时报告中跟踪电子商务交易。您可以设置一个事件来跟踪成功的交易,如果您想要实时查看它们,而不是目标转换,因为每个会话只会跟踪一次目标。
如果你的交易转到"谢谢你"页面,然后您甚至可以只检查内容报告,看看您是否看到该特定页面。