我启用了" Google Analytics"和#34; Google Analytics for Ubercart"模块。在admin / settings / googleanalytics中,我设置了我的网络媒体资源ID。在Google电子商务管理页面上,我启用了"电子商务跟踪"。然后我在我的网站上进行了购买,但它没有出现在Google电子商务报告中。
我尝试过的事情: •启用模块:“Google Analytics”和“Google Analytics for Ubercart” •将角色设置更改为“添加到除所选角色之外的所有角色”并将角色留空admin / settings / googleanalytics •刷新缓存:admin / settings / performance •安装了适用于Chrome的Google Analytics调试扩展程序
这是调试的结果: 跟踪信标已发送!
utmwv=5.4.8d&utms=40&utmn=1386010941&utmhn=mysite.com&utmcs=UTF-8&utmsr=1600x900&utmvp=1585x562&utmsc…373.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B&utmu=q~ ga_debug.js:24
Account ID : UA-myid
Page Title : Order complete | My Site
Host Name : mysite.com
Page : /cart/checkout/complete
Referring URL : 0
Hit ID : 495430067
Visitor ID : 173998059
Session Count : 184
Session Time - First : Mon Apr 22 2013 09:12:53 GMT-0400 (Eastern Daylight Time)
Session Time - Last : Thu Mar 13 2014 08:05:00 GMT-0400 (Eastern Daylight Time)
Session Time - Current : Thu Mar 13 2014 09:41:05 GMT-0400 (Eastern Daylight Time)
Campaign Time : Mon Apr 22 2013 09:12:53 GMT-0400 (Eastern Daylight Time)
Campaign Session : 1
Campaign Count : 1
Campaign Source : (direct)
Campaign Medium : (none);
Campaign Name : (direct)
Language : en-us
Encoding : UTF-8
Flash Version : 12.0 r0
Java Enabled : true
Screen Resolution : 1600x900
Browser Size : 1585x562
Color Depth : 24-bit
Ga.js Version : 5.4.8d
Cachebuster : 1386010941
这是一些发送给GA的代码,但没有出现在GA
上if (typeof(_gat) == "object") {
var pageTracker = _gat._getTracker("UA-myid");
}
pageTracker._addTrans("44514", "My Site", "96.3", "0", "18.71", "Waterbury", "Connecticut", "United States");
pageTracker._addItem("44514", "TD001", "Custom Frame", "No category", "77.590", "1");
pageTracker._trackTrans();
这是一些发送给GA并出现在GA上的代码
if (typeof(_gat) == "object") {
var pageTracker = _gat._getTracker("UA-myid"); }
pageTracker._addTrans("44500", "My Site", "29.47", "0", "11.48", "Milwaukee", "Wisconsin", "United States");
pageTracker._addItem("44500", "62028", "Metal Silver 11x14", "Wall", "17.990", "1");
pageTracker._trackTrans();
答案 0 :(得分:1)
_addTrans
来电中的总数(-3.5527136788005E-15)存在疑问。
您已将负数总和转移到_addTrans
,每单位价格和数量均为_addItem
...看起来您的总数应为" 16.99&# 34。