原先:
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-661352-2");
pageTracker._trackPageview(); pageTracker._trackPageview("/GA/fastcount");
} catch(err) {}
现修改为:
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='http://fc.my0513.com/HttpErrors/IniTracker.js' type='text/javascript'%3E%3C/script%3E"));
其中try{}catch(err){},分拆到:
try {
var pageTracker = _gat._getTracker("UA-661352-2");
pageTracker._setDomainName("none");
pageTracker._setAllowLinker(true);
pageTracker._trackPageview();
pageTracker._trackPageview("/GA/fastcount/20100208/");
} catch(err) {}
没有评论:
发表评论