Session Handling - GameAnalytics/GA-SDK-JAVASCRIPT GitHub Wiki
Sessions are the concept of a user spending focused time in your game - from game launch to the user leaving the game.
Session start
- Generate new session.
- Add a session start event (a "user" event).
- Start the periodic activation of submitting queued events.
- Next event submit will fix potential missing session_end from earlier sessions.
Session end
- Stop the periodic activation of submitting queued events.
- Add a session_end event.
- Submit queued events.