Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Business

Properties and Sub-Domains: Google Analytics

We have a few sites with different subdomains ex: domain.com, sub1.domain.com, sub2.domain.com (not real domains).

If we want to see data for all 3 sites together as well as individual data for each subdomain, can we use the same GA tracking code for all 3 domains, making them act as one property, then use views to see data both the individual sub-domains as well as a collective property?

Just making sure my thought process is correct.

2 Answers

Kevin Korte
Kevin Korte
28,149 Points

Who's tracking code?

The tracking code for domain.com. Am I able to use that for all 3 sites, and have the data collect as one site?

Kevin Korte
Kevin Korte
28,149 Points

I don't know, I'm not familiar with it. Is the code actually from domain.com? They appear to be a registrar, do they provide a tracking service?

Sorry, I just realized that this didn't post under the Google Analytics video. So my question wouldn't have made any sense. I have re-worded my original question