Skip to content

EngagementAreaProps

Props for EngagementArea.

optional area?: string

Logical area name — set as the telemetry scope for descendants and stamped on emitted events. Optional: when omitted, an enclosing TelemetryScope area is inherited (area → feature → action).


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 feature?: string

Product feature within the area (the spec’s former id), stamped on emitted events and the descendant scope. Leaves an outer area intact when area is not given. Provide at least one of area or feature.


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.