如何修复Google Analytics实验代码?

时间:2016-02-20 02:03:30

标签: testing google-analytics google-experiments

function utmx_section(){}function utmx(){}(function(){var
k='code-here',d=document,l=d.location,c=d.cookie;
if(l.search.indexOf('utm_expid='+k)>0)return;
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
'<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
'://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();

上面的代码是google analytics提供的用于跟踪a / b测试的代码。验证代码时出现此错误

  

原文:可能在此处找到的实验代码损坏:行:4,   柱:5

0 个答案:

没有答案