如何创建包含 2 个主机名的 Google 分析过滤器?
How to create a Google Analytics Filter that includes 2 host names?
我的目标是创建一个 Google 分析过滤器 "includes only" 2 个主机名。
例如,仅包括:
- www.example.com
- www2.example.com
期望的结果是 Google 分析报告仅显示来自 www.example.com 和 www2.example.com 的流量。
有没有办法做到这一点?
是的,您可以通过用管道“|”分隔来源来做到这一点
example\.com|example2\.com|.*example3\.com
这里是 Google 文档:
Include Filters are applied with the reverse logic. When you apply an
Include Filter, the hit is thrown away if the pattern does not match
the data. If you apply multiple Include Filters, the hit must match
every applied Include Filter in order to save the hit. To include
multiple patterns for a specific field, create a single include filter
that contains all of the individual expressions separated by '|'.
查看这些链接以获取更多信息
https://support.google.com/analytics/answer/1034832?hl=en&ref_topic=1034830
我的目标是创建一个 Google 分析过滤器 "includes only" 2 个主机名。
例如,仅包括:
- www.example.com
- www2.example.com
期望的结果是 Google 分析报告仅显示来自 www.example.com 和 www2.example.com 的流量。
有没有办法做到这一点?
是的,您可以通过用管道“|”分隔来源来做到这一点
example\.com|example2\.com|.*example3\.com
这里是 Google 文档:
Include Filters are applied with the reverse logic. When you apply an Include Filter, the hit is thrown away if the pattern does not match the data. If you apply multiple Include Filters, the hit must match every applied Include Filter in order to save the hit. To include multiple patterns for a specific field, create a single include filter that contains all of the individual expressions separated by '|'.
查看这些链接以获取更多信息
https://support.google.com/analytics/answer/1034832?hl=en&ref_topic=1034830