使用R库RGA从Google Analytics导出数据

时间:2017-12-11 13:43:38

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

如果我有这样的谷歌分析链接:

https://www.googleapis.com/analytics/v3/data/ga?ids=ga%5A6389839&start-date=yesterday&end-date=yesterday&metrics=ga%3Apageviews&dimensions=ga%3ApagePath%2Cga%3Adimension4%2Cga%3Adimension

在下面的代码中输入的凭据是什么(ga $ getData,ID,指标和维度都是麻烦):

ga$getData(ids, batch = TRUE, start.date, end.date, 
           metrics = "ga:visits", dimensions = "ga:date,ga:medium,ga:source", 
           sort = "", filters = "", segment = "")

我尝试过这么多输入,但是每个输入都有一些错误。 感谢。

0 个答案:

没有答案