I'm currently implementing Google Analytics into my app. The documentation says nothing about how tracking is handled when the user has no internet connection. Does the data get tossed or is it stored somewhere for later upload?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Yes, but it seems there is a caveat to be aware of...
Analytics records a Queue_Time parameter which you can use to calculate the "real" time of the event (as opposed to the "upload" time"). However the documentation implies that not all offline events will actually be sent if the user is offline for a long time:
https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#qt
It's not explicitly stated in the SDK documentation, as far as I can tell, but it implies that it stores the hits and waits until the user is online again to send them.
From the Android SDK Documentation: