Skip to content

EngagementAreaProps

Props for EngagementArea.

area: string

Logical area name — set as the telemetry scope for descendants and stamped on emitted events.


optional as?: string | number | symbol

Host element tag. Default 'div'.


optional dwellEvent?: string

Event emitted with accrued dwell (dwell_ms) when the area unmounts. Default engagement_dwell.


optional interactionEvent?: string

Event emitted when a descendant is clicked. Default engagement_interaction.


optional purpose?: TrackPurpose

Advisory purpose applied to the scope and emitted events.


optional threshold?: number

Visible fraction required to count as viewed / dwelling (0–1). Default 0.5.


optional viewEvent?: string

Event emitted once when the area is first qualified-viewed. Default engagement_view.