Setting up sub domain include filter in google analytics

妖精的绣舞 提交于 2019-12-24 18:26:43

问题


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:


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/12670174/setting-up-sub-domain-include-filter-in-google-analytics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!