EARN YOUR FIRST 1000$ THIS MONTH!

4 Steps to Track Multiple Subdomains in Google Analytics

Google Analytics is extremely powerful and we all know how helpful it can be to monitor your reader...

Google Analytics is extremely powerful and we all know how helpful it can be to monitor your readers to attain the results you want with your blog. Recently we setup couple of sub domains for BloggingeHow; namely Blogger Widgets and our eBook squeeze page. In this very guide, we'll dig into few simple steps that can let us setup our blog's sub domains in Google Analytics comprehensively.

There are few steps that need to be followed when your Google Analytics account will start getting stats for your sub domains. There can be various strategies to achieve this. You can either create new Google Analytics account for each of your sub domain as you might already do for your root (main blog domain). e.g www.yourblog.com

Though this is very tiring and there is a way out to this. We can setup our same Analytics account that we use for the main blog domain to show us with the stats of our sub domains. This would help us better monitor all the stats in one place.Once you're done with the post, you'll achieve:

Installing code of Google Analytics for each sub domain

Setting up profiles for every sub domain

Using main Profile of your blog to display sub domains data.

Step #1 Installing the Analytics Code for Each Sub domain

Go to your Sub domain Edit HTML section where you can edit its HTML. Place the following JavaScript that is a bit modified to track your sub domains data.

You'll be shown a new screen where you can enter your new 'views' name. Select Website (and not mobile app, if you're following these steps for your blog/website's sub domain).

Once done your new view would be created.

Step #3 Adding Filters to Views/Profiles

Now choose your main domain view/profile (as shown in the picture below) and hit Filters. That would let you create new filters for your new domain. In this step, we'll only allow traffic from your specific view/profile that you just created so that we can track traffic from that very sub domain.

You would have to follow the image below to setup filters for your every single domain. Also, notice that www is its self a domain . So choose your profile/views that you previously created in step#2 for every single sub domain (also for www profile).

Once done, your filters would make sure that your profiles/views only show traffic for that particular sub domain.

Now its all done, though you would like to get your all profiles/views data in your main profile so that you would know how much traffic your blog gets combined with all the sub domains.

Follow the next step to achieve that.

Step#4 Adding Sub-domains Data to Main Blog Profile/View

As per the previous settings, Analytics would display your sub domains links in a way that is not helpful to you. Notice in the image below how you would not be able to differentiate between your sub domains data.

So for this, you have to add a filter to your main profile as shown in the image below. This very filter would display the URL in a format that would display sub domain followed by main domain and they post extension.

Adding filter for your main profile/view as shown in the image below and you're all set.

Once done with the steps above, you'll start viewing data from your sub domains in your Analytics account. Best of luck