-
Notifications
You must be signed in to change notification settings - Fork 19
Session Tracking
David Schuppa edited this page Dec 3, 2020
·
2 revisions
Note
Session 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
clearContact
call, the session is ended, and no new session is started - Every
setContact
call will end the ongoing session, if there is one, and will start a new one
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
.