Google analytics 通用谷歌分析多个领域

Google analytics 通用谷歌分析多个领域,google-analytics,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),

据我所知,谷歌分析通用跟踪代码应该跟踪来自任何域或子域(如果您将脚本放在页面上)的数据

因此,对于我的代码:

> <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-xxxxxxxx-1', 'domain-example.com');   ga('send',
> 'pageview');
> 
> </script>
>
>(函数(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]| |函数(){
>(i[r].q=i[r].q | |[]).push(参数)},i[r].l=1*新
>日期();a=s.createElement(o),
>m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
>})(窗口、文档、“脚本”、“www.google-analytics.com/analytics.js”、“ga”);
> 
>ga('create','UA-xxxxxxxx-1','domain example.com');ga(‘发送’,
>“页面视图”);
> 
> 
它最初是为“example1.domain example.com”子域创建的

我已要求将其也放入“example2.domain example.com”中

但是,我仅从“示例1”接收数据

我是不是遗漏了什么


我没有正确的GA代码吗?

您应该看到示例2中的数据。您查看数据的配置文件中是否有任何过滤器?