我正在使用标准脚本在我的网页上设置谷歌分析:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_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);
})();
</script>
如果我将这个站点包含在我的 UAT 页面(例如http://uatsite.com/)上,Google 会跟踪任何活动,或者它只会跟踪我的主站点上的活动(例如http://production-site.com)。
谢谢