Google Analytics中的自定义变量。一个工作,一个不工作

时间:2012-07-07 00:23:42

标签: google-analytics

我一直在尝试实现自定义变量来跟踪一个会话级事件,子域(也就是说,哪些客户最活跃)......以及一个页面级事件(我想...我想看看有多少客户正在采用我们推出的新功能

以下GA代码包含在网站的每个页面上。在大多数页面上,“Showcase”的值只是一个空白字符串。在新功能的登录页面上,我将其设置为我们用于识别客户组的编码字符串。

我已经能够获得'Subdomain'自定义变量一段时间,但是对于我的生活,我似乎无法获得'Showcase'自定义变量来收集数据......我已经附上我的GA代码,以及Chrome GA调试器的输出......

任何帮助将不胜感激! THX!

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-31929869-1']);
  _gaq.push(['_setDomainName', 'domainname.com']);
  _gaq.push(['_addIgnoredRef', 'domainname.com']);
  _gaq.push(['_setCustomVar', 1, 'Subdomain', 'customer_subdomain',2]); 
  _gaq.push(['_setCustomVar', 2, 'Showcase', 'customer_subdomain__ChadGGGG',3]);

  _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);
  })();

以下是调试器的输出

_gaq.push processing "_setAccount" for args: "[UA-31929869-1]":  ga_debug.js:18
_gaq.push processing "_setDomainName" for args: "[domainname.com]":  ga_debug.js:18
_gaq.push processing "_addIgnoredRef" for args: "[domainname.com]":  ga_debug.js:18
_gaq.push processing "_setCustomVar" for args: "[1,Subdomain,customer_subdomain,2]":  ga_debug.js:18
_gaq.push processing "_setCustomVar" for args: "[2,Showcase,customer_subdomain__ChadGGGG,3]":  ga_debug.js:18
_gaq.push processing "_trackPageview" for args: "[]":  ga_debug.js:18
Track Pageview ga_debug.js:18
Tracking beacon sent!
utmwv=5.3.3d&utms=14&utmn=1052170115&utmhn=customer_subdomain.domainname.com&utme=8(Subdomain*Showcase)9(customer_subdomain*customer_subdomain__ChadGGGG)11(2)&utmcs=UTF-8&utmsr=1440x900&utmvp=1425x260&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=11.3%20r300&utmdt=Ad%20Showcase%20%7C%20Impact%20Engine&utmhid=1698418735&utmr=-&utmp=%2Fspecsheets%2Fview%2F1872&utmac=UA-31929869-1&utmcc=__utma%3D161848100.1709535606.1337723076.1341352920.1341618347.44%3B%2B__utmz%3D161848100.1340241537.36.2.utmcsr%3Dpublisher.flashadstore.net%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2Fsellsheets%3B&utmu=qRAAAC~ ga_debug.js:18
Account ID               : UA-31929869-1
Page Title               : Ad Showcase 
Host Name                : customer_subdomain.domainname.com
Page                     : /specsheets/view/1872
Referring URL            : -
Hit ID                   : 1698418735
Visitor ID               : 1709535606
Session Count            : 44
Session Time - First     : Tue May 22 2012 14:44:36 GMT-0700 (PDT)
Session Time - Last      : Tue Jul 03 2012 15:02:00 GMT-0700 (PDT)
Session Time - Current   : Fri Jul 06 2012 16:45:47 GMT-0700 (PDT)
Campaign Time            : Wed Jun 20 2012 18:18:57 GMT-0700 (PDT)
Campaign Session         : 36
Campaign Count           : 2
Campaign Source          : publisher
Custom Var 1             : label:'Subdomain' value:'customer_subdomain' scope:'2'
Custom Var 2             : label:'Showcase' value:'customer_subdomain__ChadGGGG' scope:'Page'
Language                 : en-us
Encoding                 : UTF-8
Flash Version            : 11.3 r300
Java Enabled             : true
Screen Resolution        : 1440x900
Browser Size             : 1425x260
Color Depth              : 24-bit
Ga.js Version            : 5.3.3d
Cachebuster              : 1052170115 ga_debug.js:18
_gaq.push processing "_setAccount" for args: "[UA-5137365-60]":  ga_debug.js:18
_gaq.push processing "_setDomainName" for args: "[domainname.com]":  ga_debug.js:18
_gaq.push processing "_trackPageview" for args: "[]":  ga_debug.js:18
Track Pageview ga_debug.js:18
Tracking beacon sent!
utmwv=5.3.3d&utms=15&utmn=510447593&utmhn=customer_subdomain.domainname.com&utme=8(Subdomain*Showcase)9(customer_subdomain*customer_subdomain__ChadGGGG)11(2)&utmcs=UTF-8&utmsr=1440x900&utmvp=1425x260&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=11.3%20r300&utmdt=Ad%20Showcase%20%7C&utmhid=1698418735&utmr=-&utmp=%2Fspecsheets%2Fview%2F1872&utmac=UA-5137365-60&utmcc=__utma%3D161848100.1709535606.1337723076.1341352920.1341618347.44%3B%2B__utmz%3D161848100.1340241537.36.2.utmcsr%3Dpublisher.flashadstore.net%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2Fsellsheets%3B&utmu=qRAAAC~ ga_debug.js:18
Account ID               : UA-5137365-60
Page Title               : Ad Showcase
Host Name                : customer_subdomain.domainname.com
Page                     : /specsheets/view/1872
Referring URL            : -
Hit ID                   : 1698418735
Visitor ID               : 1709535606
Session Count            : 44
Session Time - First     : Tue May 22 2012 14:44:36 GMT-0700 (PDT)
Session Time - Last      : Tue Jul 03 2012 15:02:00 GMT-0700 (PDT)
Session Time - Current   : Fri Jul 06 2012 16:45:47 GMT-0700 (PDT)
Campaign Time            : Wed Jun 20 2012 18:18:57 GMT-0700 (PDT)
Campaign Session         : 36
Campaign Count           : 2
Campaign Source          : publisher
Custom Var 1             : label:'Subdomain' value:'customer_subdomain' scope:'2'
Custom Var 2             : label:'Showcase' value:'customer_subdomain__ChadGGGG' scope:'Page'
Language                 : en-us
Encoding                 : UTF-8
Flash Version            : 11.3 r300
Java Enabled             : true
Screen Resolution        : 1440x900
Browser Size             : 1425x260
Color Depth              : 24-bit
Ga.js Version            : 5.3.3d
Cachebuster              : 510447593 ga_debug.js:18

0 个答案:

没有答案