How to see traffic for subdomains in Google Analytics

Follow

By default, Google Analytics does not differentiate reporting for subdomains. So, if your website uses subdomains, such as for a job board (jobs.yourdomain.com), you will need to set up filters in your Analytics account to accurately track traffic to those subdomains.

To set up a filter to enable the full domain to display when viewing reports, follow these steps:

  1. Login to your Analytics account and go to the Admin screen
  2. Click on "Filters" under the third column (VIEW)
  3. Click "+ New Filter"
  4. Add name for Filter (anything is fine - example - "Show Full Subdomain")
  5. Select "Custom" for Filter Type
  6. Selected "Advanced"
  7. For Field A -> Extract A, select "Hostname" from the drop down and type the following into the field: (.*)
  8. For Field B -> Extract B, select Request URl and type the following into the field: (.*)
  9. For Output To -> Constructor, select Request URl and type the following into the field: $A1$B1
  10. Leave the rest of the settings as is and click "Save"

When you go back into your reporting section, you will now see full URLs as opposed to just the slugs.  Data from now on will be attributed correctly.

Below is a screenshot of the setup screen.

 

Have more questions? Submit a request

Comments

Powered by Zendesk