Analytics+Statistics for offline Apps?

自闭症网瘾萝莉.ら 提交于 2019-12-01 10:58:33

Everything in Universal Analytics works through the Measurement Protocol which, at the end of the day, is just HTTP requests to the GA backend. All of the GA tracking libraries out there (analytics.js for Web and the Android and iOS SDKs) are just sugar on top of the Measurement Protocol.

If you want to send data to GA, you're going to need to have network access. And if there's no network access, the requests will have to be queued and sent later. As far as I know, none of the tracking libraries fully support this (they may in the future), so unfortunately you may have to implement offline support yourself if it's a hard requirement.

As for Windows phones, like I said, there's always the Measurement protocol, so you should be able to send hits from any device that supports HTTP (even things like printers and TVs).

Note: If you're queuing the hits to be sent later, you'll need to record when they occurred and set the &qt (queue time offset) parameter in the Measurement Protocol request, otherwise the hit times will be off.

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