intro.js
    Preparing search index...

    Type Alias TourEvent

    A tour lifecycle event, delivered to listeners added with tour.onEvent(). Designed to be forwarded to analytics tools (Google Analytics, Mixpanel, Segment, ...) to measure where users drop off.

    type TourEvent = {
        reason?: "skip" | "end" | "done";
        step?: number;
        stepTitle?: string;
        timestamp: number;
        totalSteps: number;
        tourId?: string;
        type: TourEventType;
    }
    Index
    reason?: "skip" | "end" | "done"

    Why the tour completed. Only set on complete events.

    step?: number

    Zero-based index of the current step. Not set on start.

    stepTitle?: string

    Title of the current step, if it has one

    timestamp: number

    When the event happened, in milliseconds since the epoch

    totalSteps: number

    Total number of steps in the tour

    tourId?: string

    Value of the tourId option, if set

    • start: the tour started
    • step: a step was shown to the user
    • skip: the user skipped the tour
    • complete: the tour completed (see reason)
    • exit: the tour closed, for any reason (always the last event)