Mobile app version of vmapp.org
Login or Join
Speyer207

: Tracking multiple subdomains and domains going to the same site, separately in Google Analytics I have a new site that has multiple top-level domains and subdomains all going to it: www.domain.com,

@Speyer207

Posted in: #Domains #GoogleAnalytics #MultiSubdomains

I have a new site that has multiple top-level domains and subdomains all going to it:
domain.com, campaign.domain.com, chicago.domain.com, domain2.com - all go to the same site/site directory.

Right now I have one Google Analytics account profile set up for it, but I want to be able to track the traffic that is hitting those different URLs separately. The domains are being routed on the server-side (not .htaccess).

How can I do this in Google Analytics? Do I need to create filters? Or create different profiles for each domain?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Speyer207

2 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

Without changing the Google Analytics tracking or setup, you can generate a report that compares the different domains and subdomains. This report is difficult to get to in Google Analytics. I had to figure it out and found it difficult enough that I put an article on my blog about it. Here is a summary of the steps:


Navigate to “Content”-> “Site Content” -> “All Pages”.
Change the primary dimension to “Other” -> “Content” -> “Hostname”.
If you have more than 10 sub-domains, you may want to show more of them at once.
Select the icon for “Motion Chart”
Use the tabs on the top right of the graph and select the one with the line on it.

10% popularity Vote Up Vote Down


 

@Voss4911412

Do I need to create filters? Or create different profiles for each domain?


Both. First create separate profiles for each subdomain and domain. Then create filters for each profile specific to that hostname (i.e., the subdomain or domain):

1.) Go to:

Admin -> Profiles -> Filters -> New Filter

2.) For "Filter Name" add something like: Track Campaign Subdomain

3.) For "Filter Type" select: Predefined filter (the default)

4.) From the pull-down menus select: Include Only, Traffic to the hostname, and that contain

5.) Specify the "Hostname" like: campaign.domain.com

The result should look something like the following screenshot:



Save and repeat this for the other profiles.

Note that if you do not apply a hostname filter to your main profile (advisable), then you'll still be able to see all of the traffic combined too.

For additional information, refer to this article.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme