在与 Google Analytics Query Explorer 2 玩了很长时间且不愉快之后,我提出了像这样的解决方案,它做得很好。
filters=ga:pagePath==/firstURI,ga:pagePath==/secondURI
重要的是过滤器之间没有空格
Reference Documentation
组合过滤器
过滤器可以使用 OR 和 AND 布尔逻辑组合。这允许您有效地扩展过滤器表达式的 128 个字符限制。
或
OR 运算符使用逗号 (,) 定义。它优先于 AND 运算符,不能用于在同一表达式中组合维度和指标。
示例:(每个都必须经过 URL 编码)
国家是(美国或加拿大):
ga:country==United%20States,ga:country==Canada
(Windows 或 Macintosh)操作系统上的 Firefox 用户:
ga:browser==Firefox;ga:operatingSystem==Windows,ga:operatingSystem==Macintosh
和
AND 运算符使用分号 (;) 定义。它前面有 OR 运算符,可用于在同一表达式中组合维度和指标。
示例:(每个都必须经过 URL 编码)
国家是美国,浏览器是 Firefox:
ga:country==United%20States;ga:browser==Firefox
国家是美国并且语言不以“en”开头:
ga:country==United%20States;ga:language!~^en.*
操作系统是(Windows 或 Macintosh)并且浏览器是(Firefox 或 Chrome):
ga:operatingSystem==Windows,ga:operatingSystem==Macintosh;
ga:browser==Firefox,ga:browser==Chrome
国家是美国且访问次数大于 5:
ga:country==United%20States;ga:visits>5