You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happens if the client is offline (no connection to the internet) for a short period of time? What happens to the events and collected data from within that period?
Can the data somehow pushed later, once the client is back online?
Thanks for any hints, best regards
The text was updated successfully, but these errors were encountered:
Keep in mind that this package is a wrap of Segment.io's analytics.js package.
As far as I have tested, we lose track of the user when they go offline until they come back online.
However, you can manually trigger any of the events that you want by manually storing user's information once they go offline, and using analytics.track or analytics.page when they come back up.
@arrygoo - thank you for the answer. I also thought about this, it would probably require another wrapper around this package to store all analytic events in a local storage first and push them only if the client is online, then remove them from the local storage. That way nothing would be lost.
Since you pointed me to the origins of this package I actually found an issue talking about this: segmentio/analytics.js#358
@preexo - Interesting. I think you're proposed solution sounds like a step in the right direction. We welcome PRs, however it might make more sense to have this feature on Segment.io's package.
What happens if the client is offline (no connection to the internet) for a short period of time? What happens to the events and collected data from within that period?
Can the data somehow pushed later, once the client is back online?
Thanks for any hints, best regards
The text was updated successfully, but these errors were encountered: