代码之家  ›  专栏  ›  技术社区  ›  antecessor

RStudio中的编织GA数据:相同错误(body,FALSE):object'重定向.uri'未找到

  •  1
  • antecessor  · 技术社区  · 7 年前

    我正在使用 rga 跟踪我的谷歌分析数据包。

    当我在R中创建脚本时,我成功地从GA检索数据:

    library(rga)
    library(curl)
    
    rga.open(instance="ga")
    
    x <- ga$getProfiles()
    id <- x[3,1] # here we select the ID of the webpage we are tracking
    
    visits <- ga$getData(id, 
                          start.date= as.Date("2016-01-01"), 
                          end.date = "today", 
                          metrics = "ga:visits, ga:pageviews, ga:organicSearches",
                          dimensions = "ga:date", 
                          sort = "", filters = "", segment = "",
                          start = 1, max = 1000,
                          batch = TRUE)
    

    相同(body,FALSE)中的错误:object'重定向.uri'找不到电话:。。。->请求生成->主体配置->相同的执行已停止

    如何使用R降价创建有关GA数据的报告?我怎样才能解决这个问题

    0 回复  |  直到 7 年前