0

我正在跟踪从我的网站下载的文件,但发生了一些尴尬的事情。当我打开 firebug 下载某些东西时,.gif 请求似乎卡住了:“进度轮”一直在转动,我无法打开/复制请求以查看其参数。

在此处输入图像描述 我使用的代码href是:

<a href='http://www.mywebsite.com/downloads/supermarket.sav' title='Download Test Data File (file size around 9kB)' onClick="_gaq.push(['_trackEvent', '.sav', 'Download', 'supermarket.sav']);">supermarket.sav</a>

这不正常,现在是吗?代码错了吗?尽管如此,下载似乎已在 Google Analytics 中正确注册。

4

1 回答 1

1

唔。您是否尝试过使用谷歌浏览器?它有一个专门的扩展——谷歌分析调试器——允许你查看在开发者工具控制台中被跟踪的精确细节,例如

这是调试数据的示例:

_gaq.push processing "_setAccount" for args: "[UA-XXXXXX-3]":  ga_debug.js:24
_gaq.push processing "_trackPageview" for args: "[]":  ga_debug.js:24
Track Pageview ga_debug.js:24
Tracking beacon sent!
utmwv=5.4.5d&utms=1&utmn=991384789&utmhn=davidsimpson.me&utmcs=UTF-8&utmsr=2560x1440&utmvp=1529x1054&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=11.9%20r900&utmdt=David%20Simpson&utmhid=360476275&utmr=-&utmp=%2F&utmht=1384203699409&utmac=UA-XXXXXX-3&utmcc=__utma%3D24779695.1234567890.1370042497.1382213465.1384203699.11%3B%2B__utmz%3D24779695.1370042497.1.1.utmcsr%3Durlm.co%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2Fwww.davidsimpson.me%3B&utmu=q~ ga_debug.js:24
Account ID               : UA-XXXXXX-3
Page Title               : David Simpson
Host Name                : davidsimpson.me
Page                     : /
Referring URL            : -
Hit ID                   : 360476275
Visitor ID               : 1234567890
Session Count            : 11
Session Time - First     : Sat Jun 01 2013 00:21:37 GMT 0100 (BST)
Session Time - Last      : Sat Oct 19 2013 21:11:05 GMT 0100 (BST)
Session Time - Current   : Mon Nov 11 2013 21:01:39 GMT 0000 (GMT)
Campaign Time            : Sat Jun 01 2013 00:21:37 GMT 0100 (BST)
Campaign Session         : 1
Campaign Count           : 1
Campaign Source          : urlm
Language                 : en-us
Encoding                 : UTF-8
Flash Version            : 11.9 r900
Java Enabled             : true
Screen Resolution        : 2560x1440
Browser Size             : 1529x1054
Color Depth              : 24-bit
Ga.js Version            : 5.4.5d
Cachebuster              : 991384789 ga_debug.js:24

它也适用于点击事件:)

于 2013-11-11T21:04:10.360 回答