OptionalenabledWhether view tracking is enabled for this entry.
When false, the hook returns a no-op onLayout and isVisible: false
without setting up timers or scroll listeners.
The resolved Contentful entry to track (baseline or variant).
OptionalselectedSelected optimization data for variant tracking. Omit for baseline/non-optimized entries.
Identifier of the personalization or experiment experience.
Optionalsticky?: booleanIndicates whether this optimization selection is sticky for the user.
Index of the selected variant within the experience configuration.
Mapping of baseline entry IDs to their selected variant entry IDs.
OptionalthresholdMinimum visibility ratio (0.0 - 1.0) required to consider the entry visible.
OptionalviewInterval (in milliseconds) between periodic view duration update events after the initial event has fired.
OptionalviewMinimum accumulated visible time (in milliseconds) before the first tracking event fires.
Options for the useViewportTracking hook.