Different Subdomain Blog – How to Track in Google Analytics?

How to choose the best website domain?
Change in Google AdWords: Campaigns will continue to be active after daily budget is reached

Not infrequently we see some companies separate the blog (or other section) of the rest of the site using different subdomains. Examples:

  • www.empresa.com.br
  • blog.empresa.com.br

The problem is that after doing this, most companies end up making a common mistake: to create separate accounts in Google Analytics .

Multiple accounts Analytics = Problems

Having multiple accounts in Google Analytics the company will face the following problems:

  • The main sources of traffic will be their own websites

Suppose a visitor do a search on Google and find one of your posts. Shortly after reading the post it enters the home of your site and end up buying a product. In this case you do not know which keyword generated the purchase because the source of traffic to the conversion page will be considered the blog itself.

  • visits and numbers only distorted visitors

Each Analytics account has its own number of visits and unique visitors, but the number of visitors who trafficked in all of its sites is an intersection between them you will not know.

  • visitation reduced Mean Time

A visitor browsing from home, blog and product would generate several different visits short, while in fact it may have spent a long period analyzing your company.

Solution: Single account, multiple profiles

You can solve these problems by using the same Analytics account on all your sites. And an interesting point is that not so you lose the flexibility to analyze different reports. You can create different profiles for each subdomain and use filters to separate the data.

Technical details

Even tracking code

One account you must understand that this is not a single sign-in Analytics, but a single AU-ID, also called “property” by Google Analytics.

For this you need to ensure you are using the exact same tracking code on every page of your site, either on the blog or in the home. The correct code is indicated by Analytics when choosing the “A domain with multiple subdomains” in the “Administrator” section, as in the image below.

Filters to track separately

If you do not want the mixed data in analytics do the following:

  • Create a new profile in Admin> Profiles> New Profile
  • Give the name of one of the subdomains you use, for example: blog.empresa.com.br
  • With the new profile selected click Filters> New Filter
  • Give the name “Filter only subdomain”
  • Choose Custom Filter> Include
  • In “Filter Field” choice “Host Name”
  • In the “Filter Pattern” fill in the address of the subdomain, but add a backslash (\) before each point, example (.) Blog \ .empresa \ .com \ .uk
  • Repeat step for other subdomains that have

 

Tip: do not remove the initial profile, always keep a this profile with no filters. Just so you can make horizontal evaluations (among all sites). But stay tuned, unfiltered profile will add the visits to pages with the same URL, for example: blog.empresa.com.br / home  and www.empresa.com.br / home . To prevent this from happening while analyzing the content of this unfiltered profile, add the “Host Name” as a secondary dimension.