首页 文章

核心报告API找到的总结果

提问于
浏览
3

我希望在两个月内返回大量Google Analytics数据结果 .

但是,找到的总结果不准确或我的预期 .

如果我将开始日期和结束日期缩小到特定日期,则返回大约40k的结果 . 在两个月的时间内,应该有240万条记录 . 然而,从api发现的总结果表明350k .

存在一些差异,并且在选择较大的日期范围时数字不会相加 . 我可以确认两个月内的ga数据没有差距 .

如果有人遇到过这个问题并找到了理由,那就太棒了 .

1 回答

  • 1

    在您的查询中,您需要提供sampiling level

    samplingLevel=DEFAULT Optional.
      Use this parameter to set the sampling level (i.e. the number of visits used to 
      calculate the result) for a reporting query. The allowed values are consistent with
      the web interface and include: 
           •DEFAULT — Returns response with a sample size that balances speed and accuracy. 
           •FASTER — Returns a fast response with a smaller sample size. 
           •HIGHER_PRECISION — Returns a more accurate response using a large sample size, 
             but this may result in the response being slower. 
    
    If not supplied, the DEFAULT sampling level will be used.
    

    没有办法完全删除采样大型请求仍会返回采样数据,即使您已将其设置为Higher_precission,如果必须,请将您的请求缩小 .

    如果您想支付premium Google Analytics帐户,可以将数据提取到BigQuery中,然后您就可以访问非抽样报告 .

相关问题