问题
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