我想跟踪在http://pages.foo.bar.com/~username/
中托管的网站的流量。如何使用Google Analytics跟踪子域名?
创建属性后,这是跟踪代码我:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46830709-2', 'bar.com');
ga('send', 'pageview');
</script>
但不会这条赛道的bar.com
所有流量?在后端,我只想看到文件夹~username/
上托管的网站的流量。
Google Search Console怎么样?它是一个属性而不是视图。一个Google Search Console只能有一个域名(或子域名)链接。 –