Notes on Offline Events
Redux Beacon comes with two extensions for measuring offline events, one for web apps, and one for native apps. Both extensions read the app's connection status from state, they record events in a persistent storage service when the app is offline, and they push the events to an analytics target when the app is back online.
When working on a native app, you may not have to worry about offline event collection. Some analytics SDK's like the Google Analytics iOS and Android SDK's store events locally by default before dispatching them to the google analytics servers. See the Dispatching (iOS SDK) docs and the Dispatching (Android SDK) docs
Both extensions add a timestamp to each event right before they're saved offline. Whether or not you use this piece of meta data is up to you and the types of analytics you want to track. For most analytics events the exact time an event was recorded doesn't matter, and many analytics services don't even provide reports that drill down to this level of detail.
If you're working on a web app, and your analytics reports warrant the need for exact-time analytics, you can use the offline event timestamps directly, or if you need to compute derived data (like a time delta) you can do so by making a higher order target.
For example, here's how you would create a higher order target to track exact-time offline events in Google Analytics:
Note that in Google Analytics, you have to use the measurement protocal (i.e. hit the google analytics rest api directly) if you want to specify the queue time parameter.
Last updated