开发者

Can I track 2 sub-domains with same Google Analytics code for mobiles (i.e. ga.php)

开发者 https://www.devze.com 2023-02-24 05:16 出处:网络
Let say I have first.mydomain.com and second.mydomain.com, what if I install same GA code to each of those different domai开发者_JS百科ns. Is this possible? if so how Google Analytics will show these

Let say I have first.mydomain.com and second.mydomain.com, what if I install same GA code to each of those different domai开发者_JS百科ns. Is this possible? if so how Google Analytics will show these both for a single profile?


Yes it is possible to use the same tracking code on multiple sites. And GA will essentially aggregate all the data together.

Now the good thing is that Google Analytics has a hostname dimension which you could use to differentiate the traffic between your two subdomains. You could use filters on the hostname if you are using the Custom Report utility or the Google Analytics API to get the data yourself.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号