问题描述
有什么办法来手动刷新在谷歌分析队列中的所有事件,当谷歌播放服务的安装?
有是Android GA文档中的一个方法:
GoogleAnalytics.getInstance(getActivity()getBaseContext()。)dispatchLocalHits();
但这种方法不能与谷歌播放服务工作 - 文档说:
When Google Play service is available hits from the application are send over to the service without any delay (except for the processing time that should not take longer then milliseconds). Once the data is send over to the service your application is not involved in the delivery. Your application process can safely be terminated and the hits will still be uploaded to the Analytics. The service itself will periodically dispatch the collected data from multiple application in compressed batches. Individual applications don't have control on the service dispatch schedule. In general the hits would be uploaded over the network within few minutes after they are reported by the application.
Almost any device that has Google Play store installed will have Google Play services. Chances are your app is running on a Google Play device. Amazon Fire phone and many of the carrier sponsored devices in China will not have Google Play services.
这篇关于同花顺谷歌分析事件手动与谷歌播放服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!