How to see traffic for subdomains in Google Analytics

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

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

  1. Log in 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 ok – 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.”

Now, you will see full URLs in Google Analytics.  Data from now on will be attributed correctly.

See More

Below is a screenshot of the setup process. Enjoy.

See More