Event Reference
Canonical Shared Event Schema
interface AnalyticsEvent {
// Shared identifiers & timing
/**
* The difference between the client clock vs. server clock,
* represented in milliseconds.
*/
clockDriftInMs: number;
/**
* ISO 8601 timestamp from client clock, representing the timestamp
* when the event was fired.
*/
eventDate: string;
/**
* Universally unique event id, in UUID v4 format.
*/
eventId: string;
/**
* The distinct, domain-specific type of event.
*/
eventType: string;
/**
* The current visitor's locale setting in a multi-language environment.
*/
locale?: string;
/**
* Distinct store identifier in a multi-store/multi-region environment.
*/
storeRef?: string;
/**
* The distinct visitor identifier, if provided by the host app or
* environment.
*/
visitorExternalId?: string;
/**
* The universally, LiSA-assigned visitor identifier,
* in UUID v4 format.
*/
visitorId?: string;
/**
* The universally, LiSA-assigned visitor session identifier,
* in UUID v4 format.
*/
visitorSessionId?: string;
// If applicable to the event
/**
* The universally unique identifier of the media item,
* this event is associated with, in UUID v4 format.
*/
mediaItemId?: string;
/**
* The distinct type of media item, this event is associated with.
*/
mediaItemType?: 'live' | 'replay' | 'story';
/**
* An object, representing the current media item's playback progress.
*/
progress?: {
/**
* Indicates, whether the current media item is a live stream or
* recorded.
*/
isLive: boolean;
/**
* Indicates whether the current media item playback is active.
*/
isPlaying: boolean;
/**
* The current media item's playback position,
* represented in milliseconds.
*/
currentTimeInMs: number;
/**
* The current media item's total duration (-1 for live),
* represented in milliseconds.
*/
durationInMs: number;
/**
* The accumulated watch time, represented in milliseconds.
*/
elapsedTimeInMs: number;
};
}Events
Event Type
Description
Last updated