Thursday, October 29, 2009

Setting up Unique Profiles for Sub Domains in Google Analytics

Many websites use sub domains to make it easier for the public to find specific content on their website. A sub domain is logical name that is used before the root domain instead (instead of www) like energy.ihs.com or pharmacy.ucsf.edu.

By placing the same Google Analytics Javascript on all your sub domains, you will have one profile in Google Analytics that will aggregate all your website data.

It is still probably a good idea to setup a unique profile for each sub domain, especially if the web content on each sub domains belongs to different business stakeholders.

To setup unique profiles for each sub domain within Google Analytics you will need to create a new profile for each sub domain and then only include the analytic data from that sub domain.

Create a New Profile
  1. Click on the "Add New Profile" link.
  2. Select the "Add a Profile for an existing domain" radio button and enter a Profile Name that can be easily identified to the sub domain before clicking on the Finish button.
Create the Filter
  1. Click on the "Filter Manager Link" and then the "Add Filter Link".
  2. Enter a filter name that can be easily identified to the sub domain, select the radio buttons "Custom Filter" and "Include" and under the Filter Field dropdown menu select "Hostname".
  3. In the Filter Pattern field type in the subdomain you are creating this profile for followed by a backslash that is immediately followed by a period, then type in the root domain followed by another backslash and period and then type in the top level domain suffix of your website (such as .com, .net, org, etc). Hence, your Filter Pattern should look something like this analytics\.rwebconsulting\.com.
  4. Under the Available Website Profile list, select the profile you created in Step 1 and click on the Add button and then the Save Changes button
Here is a video describing how to setup unique profiles for each sub domain in Google Analytics:



Related Links:

Bookmark and Share