0

Google Analytics for Android caches hits while the device is offline. Unfortunately his older than 4 hours might get lost. (See https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#qt )

The app in question will often be used in offline mode. I would prefer to not loose any hits. Inaccurate timestamps seem to be the smaller trade off.

I see the different ways to cope with analytics' shortcomings:

  1. Cache on the device in a wrapper for analytics. Call analytics multiple times when back online.
  2. Build a custom taking library, cache locally, send to custom tracking server. Save time delta's on that server and call analytics from there.
  3. Track with analytics and a custom library + custom server. Implement basic metrics on the custom server to get an idea what analytics fails to track.

Which would be the easiest and most accurate way? Is there any other methods to get complete and reliable offline tracking?

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
Simon
  • 4,395
  • 8
  • 33
  • 50
  • I don't get suggestion 2. If you can send data to a custom tracking server you might as well send it to Google directly. – Eike Pierstorff Sep 17 '16 at 14:22
  • In 2. all hits will have the timestamp of the upload. Having the time delta's on the server helps to analyze the data. In this case I would not loose any hits, only the correct time stamp. But I would have the exact delta for each hit. – Simon Sep 17 '16 at 14:32

0 Answers0