-
Notifications
You must be signed in to change notification settings - Fork 22
Session Tracking
David Schuppa edited this page Dec 3, 2020
·
3 revisions
NoteSession tracking is enabled from SDK version 2.11
- 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 - Also, the session is ended, and a new one is started when there is a
setContactcall, and a session was already started
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.