谁能明白为什么这行不通?我认为 UA-xxx-15 的跟踪仍然有效,但我无法让 Google Analytics 识别出 UA-xxx-17 的代码甚至存在......
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxx-15']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
_gaq.push(['b._setAccount', 'UA-xxx-17']);
_gaq.push(['b._setDomainName', 'example.com']);
_gaq.push(['b._setAllowLinker', true]);
_gaq.push(['b._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);
})();