• 如何在 go角分析中适当使用习俗var? 我使用了以下守则,这里指的是通知内容。
- i only seen one being in the get request
- After 24 hours only one showed up
- After commenting out one and changing the 2 vars to use slotIndex-1 i notice NO vars going through GA
什么是错了?
var _gaq = _gaq || [];
_gaq.push([ _setAccount , UA-12345678-1 ]);
if (cond) {
_gaq.push([ _setCustomVar ,1, one , d1,1]);
_gaq.push([ _setCustomVar ,2, name two , "sz",1]);
_gaq.push([ _setCustomVar ,3, name3 , boolVal,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);
})();