R谷歌分析过滤器

时间:2018-01-15 13:59:13

标签: r google-analytics google-api google-analytics-api

此代码效果很好。

query.list <- Init(start.date = "2017-12-10",
                   end.date = "2017-12-11",
                   dimension 
 =c("ga:sourceMedium","ga:campaign","ga:landingPagePath"),
                       metrics = c("ga:sessions"),
                       max.results = 20000,
                       #sort = "ga:date",
                       filters="ga:sourceMedium!=drip / sms",
                       table.id = "ga:**********")

    ga.query <- QueryBuilder(query.list)

    ga.data <- GetReportData(ga.query, token,paginate_query = T)

然而,当我改变一行时 过滤器ga:sourceMedium%3D%3Ddrip / sms有错误。

query.list <- Init(start.date = "2017-12-10",
                   end.date = "2017-12-11",
                   dimensions = c("ga:sourceMedium","ga:campaign","ga:landingPagePath"),
                   metrics = c("ga:sessions"),
                   max.results = 20000,
                   #sort = "ga:date",
                   filters="ga:sourceMedium %3D%3Ddrip / sms",
                   table.id = "ga:*******")

ga.query <- QueryBuilder(query.list)

ga.data <- GetReportData(ga.query, token,paginate_query = T)

我只需要过滤器帮助。我想完全等于运营商。在这里搜索 https://developers.google.com/analytics/devguides/reporting/core/v3/reference

1 个答案:

答案 0 :(得分:0)

问题可能在于您的空间尝试使用filters="ga:sourceMedium %3D%Ddrip%20/%20sms

根据DaImTo