I am trying to set up a sub domain include filter in google analytics. I am a little confused about how to write the filter pattern for my sub domain which is going to be www.somesite.com/de
All of the tutorials show it set up like this: sub1.website.com. but my url structure is different. Am I missing the point here any help appreciated.
Here is a screen of what I am trying to set up:
You'll need two separate filters to accomplish this.
- Hostname: The full domain name of the page requested. For example: for http://www.google-analytics.com/requestURL/index.html?sample=text the hostname is www.google-analytics.com
- Request URI: Includes the relative URL, or piece of the URL after the hostname. For example: for http://www.google-analytics.com/requestURL/index.html?sample=text the Request URI is /requestURL/index.html?sample=text
Source: Custom Filter Fields
The confusion here was the terminology being used. I was being asked to set up sub domain tracking when our developer was using sub directories for our different countries websites.
I have now set up filters on each of the sub directories. Here is an example of a filter to include only traffic to the sub directory /at