Skip to main content

browser-tracker.clientsession

Home > @snowplow/browser-tracker > ClientSession

ClientSession interface

Schema for client client session context entity

Signature:
interface ClientSession extends Record<string, unknown> 

Extends: Record<string, unknown>

Properties

PropertyTypeDescription
eventIndexnumberIndex of the current event in the session
firstEventIdstring | nullIdentifier of the first event for this session
firstEventTimestampstring | nullDate-time timestamp of when the first event in the session was tracked
previousSessionIdstring | nullThe previous session identifier for this user
sessionIdstringAn identifier for the session (same as domain_sessionid)
sessionIndexnumberThe index of the current session for this user (same as domain_sessionidx)
storageMechanismstringThe mechanism that the session information has been stored on the device
userIdstringAn identifier for the user of the session (same as domain_userid)