Google Analytics: tracking subdomains for a profile defined for a subdomain
Posted
by
Alex G
on Pro Webmasters
See other posts from Pro Webmasters
or by Alex G
Published on 2013-06-26T15:02:44Z
Indexed on
2013/06/26
16:30 UTC
Read the original article
Hit count: 238
google-analytics
Hope you can help. We have set up a single property under our Google Analytics account. That property's default URL is set to subdomain1.example.com
.
We would now like to track multiple subdomains for example.com
, under the same property. Seems easy enough: we just need to add
_gaq.push(['_setDomainName', 'example.com']);
to our tracking code, right?
But my question is: does it matter if a) we don't need to track www.example.com
(this is tracked under a seperate account and property) and b) the default URL for our property is set to subdomain1.example.com
? Will either of these have any impact on data collection?
© Pro Webmasters or respective owner