本文介绍了从googleanalyticsr包中调用ga_goal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试打电话找目标,但我目前无法返回正确的风格错误:API返回:无效的webPropertyId:79889516.
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.
我确定这没有错,因为我的分析网址包含a48372046w79885916p82626620/
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)
推荐答案
它可能需要网络媒体资源UA代码,您可以在ga_account_list()
结果中找到它的格式为UA-33333-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.
一个例子是
ga_goal(48372046, "UA-1223455", 82626620, 4)
这篇关于从googleanalyticsr包中调用ga_goal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!