Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, when a website has multiple subdomains:


What is the best way to use Google Analytics to segment the data? I would prefer have access to 'All Data', 'Data from foo.example.com', and 'Data from bar.example.com'.

I tried setting up 3 different views, and setting a filter on the foo/bar views that says:

Include only traffic from the ISP domain that are equal to foo.example.com.

However, I am not seeing any data collected into that View. I do, however, see all data in the 'All Data' view, but I can't figure out how to segment the data. I am including the analytics.js in the application.haml layout, which is always loaded in this app.

share|improve this question

migrated from stackoverflow.com Oct 23 '13 at 15:11

This question came from our site for professional and enthusiast programmers.

You can also see some stats for each subdomain without applying any filters: webmasters.stackexchange.com/questions/42299/… – Stephen Ostermiller Oct 23 '13 at 16:33

You're so close, instead of using traffic from ISP domain use traffic to the hostname.

ga filter

To view if it is working, check out your real-time overview report.

share|improve this answer
Wow, that's embarassing. After reading that so many times I just skipped over the ISP part lol. Thanks! I'll make sure it works how I want and accept your answer :) – andrewpthorp Oct 23 '13 at 15:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.