在Google Analytics配置文件过滤器中排除/包含基于URI的流量 [英] Excluding/including traffic based on URI in Google Analytics profile filters

查看:191
本文介绍了在Google Analytics配置文件过滤器中排除/包含基于URI的流量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从整个Google Analytics个人资料中排除特定目录(及其下的所有内容)的流量?

示例:

www.thesite.com - 应该被追踪

www.thesite.com/directory/ - 不应该被跟踪,以及其下的任何东西

解决方案

经过大量的实验,我找到了一个方法来做到这一点。我希望这可以帮助别人。



在配置文件>>过滤器有预定义的过滤器和自定义过滤器。预定义的排除不会为我工作,无论我怎么写,但我没有设法让自定义过滤器工作。



我用: >
过滤器类型:自定义过滤器 - 排除

过滤字段:请求URL

过滤器模式:(^ / directory /)

这既适用于排除,也适用于仅包含,即创建一个配置文件,用于跟踪www.thesite.com/directory /


How do you exclude traffic from a certain directory (and everything under it) from an entire Google Analytics profile?

Example:
www.thesite.com - should be tracked
www.thesite.com/directory/ - should not be tracked, along with anything below it

解决方案

After lots of experimenting I found a way to do this. I hope this can help someone else later.

Under Profile >> Filters there are predefined filters and custom filters. The predefined exclude would not work for me no matter how I wrote it, but I didn't manage to get the custom filter to work.

I used:
Filter type: Custom filter - Exclude
Filter Field: Request URL
Filter Pattern: (^/directory/)

This works for both excludes, and to "include only", i.e. to create a profile that ONLY tracks things going to www.thesite.com/directory/

这篇关于在Google Analytics配置文件过滤器中排除/包含基于URI的流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆