使用R对googleAnalytics进行身份验证

时间:2020-07-19 20:45:47

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

我申请googleAnalyticsR来使用Google-API。我创建了一个要登录的项目:

library(googleAnalyticsR)
library(googleAuthR)
ga_auth(email="username@gmail.com")

通过浏览器登录后,我在浏览器中收到以下消息

Authentication complete. Please close this page and return to R.

但是,在Rstudio中,出现以下错误:

Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
Eror: Could not authenticate via any gargle cred function

问题可能出在防火墙上吗?如果为true,则应激活哪个地址才能使身份验证生效? https://www.googleapis.com/auth/analytics

0 个答案:

没有答案