Not infrequently we see some companies separate the blog (or other section) of the rest of the site using different subdomains. Examples:
The problem is that after doing this, most companies end up making a common mistake: to create separate accounts in Google Analytics .
Having multiple accounts in Google Analytics the company will face the following problems:
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.
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.
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.
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.
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:
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.