Skip to main content

react-native-tracker.sessionstate

Home > @snowplow/react-native-tracker > SessionState

SessionState interface

Current session state that is tracked in events.

Signature:
export interface SessionState 

Properties

PropertyTypeDescription
eventIndex?number(Optional) Optional index of the current event in the session
firstEventId?string(Optional) The optional identifier of the first event for this session
firstEventTimestamp?string(Optional) Optional date-time timestamp of when the first event in the session was tracked
previousSessionId?string(Optional) The previous session identifier for this user
sessionIdstringAn identifier for the session
sessionIndexnumberThe index of the current session for this user
storageMechanismstringThe mechanism that the session information has been stored on the device
userIdstringAn identifier for the user of the session