Google Analytics API not returning same data as Analytics dashboard

邮差的信 提交于 2019-12-05 21:15:00

I suspect you are having an issue with Sampling level

samplingLevel

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