私はカスタム変数を実装して、1つのセッションレベルのイベント、サブドメイン(別名、最もアクティブな顧客)、および1つのページレベルのイベント(私は...何人の顧客が採用しているのかを確認したい)を追跡しようとしています。展開した新機能)
次のGAコードは、サイトのすべてのページに含まれています。ほとんどのページでは、「Showcase」の値は単に空白の文字列です。新機能のランディングページで、顧客グループを識別するために使用するエンコードされた文字列に設定しました。
しばらくの間、「サブドメイン」カスタム変数を取得できましたが、私の人生では、データを収集するための「ショーケース」カスタム変数を取得できないようです...GAを添付しましたコード、およびChromeGAデバッガーからの出力...
どんな助けでもいただければ幸いです!どうも!
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