calling ga_goal from the googleanalyticsr package

荒凉一梦 提交于 2019-12-25 00:07:57

问题


Hi I am trying to call find goals but cant get the right style I am currently being returned Error: API returned: invalid webPropertyId: 79885916.

Im sure that this isn't wrong as my analytics url contains a48372046w79885916p82626620/

library(googleAnalyticsR)
library(ggplot2)

ga_auth()

my_accounts <- ga_account_list()

account <- ga_goal(48372046, 79885916, 82626620, 4)

write.csv (account, "r.csv", row.names = TRUE) 

回答1:


It may need the web property UA code, which is in the form UA-33333-1 that you can find in the ga_account_list() results.

An example would be

ga_goal(48372046, "UA-1223455", 82626620, 4)



来源:https://stackoverflow.com/questions/47404867/calling-ga-goal-from-the-googleanalyticsr-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!