修正IP.my0513.com自定义的GA跟踪代码   [点评]

原先:

view-source:http://hk.my0513.com/cgi-bin/work@web/whois.cgi?query=g.cn
view-source:http://fc.my0513.com/fastcounter/My0513.asp?tag=script&siteid=my0513&channel=whois
原先:
http://fc.my0513.com/HttpErrors/GA-Tracker.js

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) {}

现修改为:
http://fc.my0513.com/HttpErrors/GA-Tracker.js

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) {}

发布于 2010 年 02 月 09 日 by fisher in 默认

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注