@coveo/headless
    Preparing search index...

    Interface NavigatorContext

    The NavigatorContext interface represents the context of the browser client.

    interface NavigatorContext {
        capture?: boolean;
        clientId: string;
        forwardedFor?: string;
        location: null | string;
        referrer: null | string;
        userAgent: null | string;
    }
    Index

    Properties

    capture?: boolean

    Whether to capture analytics events.

    Must be left undefined or set to false if the clientId is an empty string, otherwise requests will fail.

    clientId: string

    The unique identifier of the browser client in a Coveo-powered page. See clientId.

    forwardedFor?: string

    TheX-Forwarded-For header. This header is used to identify the originating IP address of a client. See X-Forwarded-For

    Note: This property is only relevant for Server-Side Rendering (SSR) use cases.

    location: null | string

    The URL of the current page.

    referrer: null | string

    The URL of the page that referred the user to the current page. See Referer

    userAgent: null | string

    The user agent string of the browser that made the request. See User-Agent