如何在 Google Analytics 中过滤多个维度。
下面的工作:
.setFilters("ga:userType==anonymous").setFilters( "ga:dimension3==1234")
.setFilters("ga:userType==anonymous","ga:dimension3==1234")
第二个给出错误。
最佳答案
您需要将它们串在一起。
Combining Filters Filters can be combined using OR and AND boolean logic. This allows you to effectively extend the 128 character limit of a filter expression.
OR 运算符使用逗号 (,) 定义。
ga:country==United%20States,ga:country==Canada
AND 运算符使用分号 (;) 定义。
ga:country==United%20States;ga:browser==Firefox
我不确定那是什么语言,但它可能会更像
setFilters("ga:userType==anonymous,ga:dimension3==1234")
关于java - 如何在谷歌分析中应用多个过滤器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33383726/