我在google analytics上的个人档案是http://example.com(没有www)。这个脚本在我的网站上:Google Analytics(分析)是否从子网域中统计默认数量?
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-2']);
_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);
})();
Google Analytics会从subdomain.example.com计数视图?
另外一个问题,我想从static.example.com免费的谷歌分析的饼干。我试过放_gaq.push(['_setDomainName', 'example.com']);
但仍然在萤火虫上看到来自static.example.com的图片上的cookies。