Custom Variables in Google Analytics. One works, one doesn't -
i've been trying implement custom variables track 1 session level event, subdomains (aka, customers active)...and 1 page level event (i think...i want see how many customers adopting new feature we've rolled out)
the following ga code included on every page in site. on pages value 'showcase' blank string. on landing page new feature set encoded string use identify customer groups.
i've been able 'subdomain' custom variable while now, life of me, can't seem 'showcase' custom variable collect data...i've attached ga code, output chrome ga debugger...
any appreciated! 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); })();
here output debugger
_gaq.push processing "_setaccount" args: "[ua-31929869-1]": ga_debug.js:18 _gaq.push processing "_setdomainname" args: "[domainname.com]": ga_debug.js:18 _gaq.push processing "_addignoredref" args: "[domainname.com]": ga_debug.js:18 _gaq.push processing "_setcustomvar" args: "[1,subdomain,customer_subdomain,2]": ga_debug.js:18 _gaq.push processing "_setcustomvar" args: "[2,showcase,customer_subdomain__chadgggg,3]": ga_debug.js:18 _gaq.push processing "_trackpageview" 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" args: "[ua-5137365-60]": ga_debug.js:18 _gaq.push processing "_setdomainname" args: "[domainname.com]": ga_debug.js:18 _gaq.push processing "_trackpageview" 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
i've been trying implement custom variables track 1 session level event, subdomains (aka, customers active)...and 1 page level event (i think...i want see how many customers adopting new feature we've rolled out) the following ga code included on every page in site. on pages value 'showcase' blank string. on landing page new feature set encoded string use identify customer groups. i've been able 'subdomain' custom variable while now, life of me, can't seem 'showcase' custom variable collect data...i've attached ga code, output chrome ga debugger... any appreciated! thx! here output debugger | |||
custom variable (key2)
link under graph see it. default custom variable report show variable under slot 1. – eduardo jul 7 '12 @ 7:11