Contentful Personalization & Analytics
    Preparing search index...

    Interface EntryViewInteractionStartOptions

    Start options for automatic entry view tracking.

    interface EntryViewInteractionStartOptions {
        dwellTimeMs?: number;
        minVisibleRatio?: number;
        root?: Document | Element | null;
        rootMargin?: string;
        viewDurationUpdateIntervalMs?: number;
    }
    Index

    Properties

    dwellTimeMs?: number

    Required visible time (in ms) before the callback is fired.

    minVisibleRatio?: number

    Minimum intersection ratio (0-1) considered visible.

    root?: Document | Element | null

    IntersectionObserver root. Default: null (viewport).

    rootMargin?: string

    IntersectionObserver rootMargin. Default: "0px".

    viewDurationUpdateIntervalMs?: number

    Interval (in ms) for emitting updated view-duration events while visible.