我正在使用 Analytics API 来获取前一天的 session 数。我在早上 5 点运行这段代码。
当我早上 9 点到达办公室时,再次查询 API(或查看分析
接口(interface))返回给我的数字比我早上 5 点得到的数字高。
那么,Analytics 需要多长时间才能更新前一天的数据?这是问题还是其他问题?我在想可能与时区有关,但是在弄清楚之后,现在,我认为它不能。
谢谢
最佳答案
在 Google Analytics 中完成数据处理需要 24 到 48 小时。 Google Analytics API 和 Google Analytics 网站都是如此。虽然网站可能会在 API 之前获取数据,但我无法证明这一点,因为当您再次发出请求时,两者都已更改。它可能与记录命中时的时区无关。
Data limits
Data processing latency
Processing latency is 24-48 hours. Standard accounts that send more than 200,000 sessions per day to Analytics will result in the reports being refreshed only once a day. This can delay updates to reports and metrics for up to two days. To restore intra-day processing, reduce the number of sessions your account sends to < 200,000 per day. For Premium accounts, this limit is extended to 2 billion hits per month.
关于google-analytics - 谷歌分析需要多长时间来处理前一天的数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37181666/