Session Tracking - emartech/ios-emarsys-sdk GitHub Wiki
Session Tracking
NoteSession tracking is enabled from SDK version 2.11
What is a session?
- A session starts when the application comes to the foreground
- A session ends when it moves to the background
- On a
clearContactcall, the session is ended, and no new session is started - Every
setContactcall will end the ongoing session, if there is one, and will start a new one
What is session tracking?
Session tracking connects the events of a contact to a session. It extends every event with a sessionId of the current session.
If the application is in the background, there isn't any ongoing session, so the sessionId property will be omitted from the events.
Emarsys SDK starts this automatically, no actions needed from the customers to enable session tracking. On every session start a session:start and on every session end a session:end event will be generated. Every customEvent will be extended with the ongoing sessions sessionid.