【问题标题】:RegEx Google Analytics正则表达式谷歌分析
【发布时间】:2018-02-13 15:28:45
【问题描述】:

我是 RegEx 的新手,有一个非常简单的问题。

我试图在 Google Analytics 中查看特定的平均页面加载性能,我使用 | 表达式添加每个特定页面。我将其输入到仪表板的“过滤器”部分:

webistename/|websitename/video/video-profinet-communication/|websitename/?s=house+of+mass|websitename/article/house-of-mass-fancy-coriolis-mass-flow-meters/|websitename/category/devices/flow/

但是,它向我显示了一个按页面加载时间降序排序的表格,而不是给我这 5 个特定页面。

我哪里出错了?

【问题讨论】:

  • 在你想要 OR 的子句周围加上括号,然后转义 ?和 + 符号。
  • 如果你的意思是这个website/|website/video/video-profinet-communication/|website/s=houseofmass|website/article/house-of-mass-fancy-coriolis-mass-flow meters/|website/category/devices/flow/ 不工作:(

标签: regex google-analytics web-analytics


【解决方案1】:

试试:

^webistename/$|^websitename/video/video-profinet-communication/$|^websitename/\?s=house+of+mass$|^websitename/article/house-of-mass-fancy-coriolis-mass-flow-meters/$|^websitename/category/devices/flow/$
  • ^ 表示以
  • 开头
  • $ = 以
  • 结尾
  • \ = 用于特殊字符 (?)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-06
    • 2014-08-26
    • 1970-01-01
    相关资源
    最近更新 更多