Google Analytics Subdomains Filter

Google Analytics Show Host Steps

Are you using Google Analytics to track subdomains on your site? Google Analytics does a great job of providing instructions to set up your tracking code if you have multiple domains. The instructions for setting up the corresponding filter are pretty good as well. But, it would be a lot easier if you could just see a screen shot of what the filter settings should look like. So, here’s that screen shot above. And, here is a link to the instructions for

Under Site Linking Considerations:

Content reports only show the request URI and not the domain
Once you have domain linking established, you will see only the request URI in the content reports, and not the top-level or sub-domain for a given page. So for example, for visits to the following pages:
— and another page on
The reports will show:
— index.php
— more.php
You will not be able to distinguish which page is from which domain. To show the domain in the page reports, set a filter to include all components of the page URL, as follows:

1.In the Profile Settings page, click the Add Filter link.
2.Choose Add New Filter and provide the filter a name.
3.Choose Custom Filter and select Advanced on the Filter type settings.
4.Under Advanced settings:
1.FieldA should be set to Hostname
2.FieldB should be set to Request URI
5.Set the values for both Field A and Field B to (.*), which is an expression that captures all characters.
6.Set the Output To –> Constructor option to Request URI and provide $A1$B1 as the value for that choice.
Your reports will now show:
This will capture the portion of your URL and include that at the beginning of your page URL in the content reports section.

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge