google analytics事件跟踪在firefox 17.x,chrome 27.x和IE10中运行良好,但在firefox 20.x,21.x中无效。
在firefox 20.x中调试信息,使用firebug:
200 OK
http://www.google-analytics.com/ _ utm.gif utmwv = 5.4.3&安培; UTMS = 4和; utmn = 946065331&安培; utmhn = 10.1.62.32&安培; utmcs = UTF-8和; utmsr = 1600×900&安培; utmvp = 1600x468&安培; utmsc = 24比特及utmul = ZH-CN&安培; utmje = 0&安培; utmfl = 11.7%20r700&安培; utmdt =露天%20%C2%BB%20%E6%96%87%E6%A1%A3%E8%AF%A6% E7%BB%86%E4%BF%A1%E6%81%AF&安培; utmhid = 365910971&安培; utmr = 0&安培; UTMP =%2Fshare%2Fpage%2Fsite%2Feb-文档%2Fdocument-细节%3FnodeRef%3Dworkspace%3A%2F %2FSpacesStore%2F9914e708-d043-4146-98df-034625744db0&安培; utmht = 1371792749668&安培; utmac = UA-41710059-1&安培; utmcc = _utma%3D267551246.1346337148.1371715580.1371780993.1371792718.3%3B%2B__utmz%3D267551246.1371715580.1.1 .utmcsr%3D(直接)%7Cutmccn%3D(直接)%7Cutmcmd%3D(无)%3B&安培; utmu = q〜
网络参数:
utmac UA-XXXXXXXX-1
utmcc _ utma = 267551246.1346337148.1371715580.1371780993.1371792718.3; + _utmz = 267551246.1371715580.1.1.utmcsr =(直接)| utmccn =(直接)| utmcmd =(无);
utmcs UTF-8
utmdt Alfresco
utmfl 11.7 r700
utmhid 365910971
utmhn 10.1.62.32
utmht 1371792749668
utmje 0
utmn 946065331
utmp / share / page / site / eb-docs / document-details?nodeRef = workspace:// SpacesStore / 9914e708-d043-4146-98df-034625744db0
utmr 0
utms 4
utmsc 24位
utmsr 1600x900
utmu q〜
utmul zh-cn
utmvp 1600x468
utmwv 5.4.3
HTML code:
<head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxx-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<a href="xxx" onclick="_gaq.push(['_trackEvent', 'eb-docs', 'yulan' ,'xxx']);">xxx</a>
感谢。