Skip to content

TrackOnViewProps

Props for TrackOnView.

optional as?: string | number | symbol

Host element tag. Default 'div'.


optional data?: SdkEventProperties

Event data (reserved names are dropped by useTrack).


event: string

Event name emitted once when the element is qualified-viewed.


optional minVisibleMs?: number

Minimum visible dwell before it counts, in ms. Default 0.


optional options?: TrackOptions

Track options (area / action / purpose / immediate).


optional threshold?: number

Visible fraction required (0–1). Default 0.5.