@99devco/analytics - v2.0.0
    Preparing search index...

    Interface InitOptions

    Configuration options for initializing the analytics library.

    interface InitOptions {
        uuid?: string;
        trackPageRefreshes?: boolean;
        debug?: boolean;
        recordView?: boolean;
        apiUrl?: string;
        navType?: "natural" | "history" | "hash";
        normalizeUrls?: boolean;
        addWatcher?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    uuid?: string

    Unique identifier for your site

    trackPageRefreshes?: boolean

    Whether to track page refreshes as views

    debug?: boolean

    Whether to debug logs

    recordView?: boolean

    If false, prevents recording the initial page view. Default is true.

    apiUrl?: string

    The API URL to record traffic to. Default is https://api.99.dev.

    navType?: "natural" | "history" | "hash"

    The navigation type to use. Default is 'natural'.

    normalizeUrls?: boolean

    Whether to normalize URLS to remove trailing slashes, file extensions, and query parameters. Default is true.

    addWatcher?: boolean

    Whether to add a watcher to the analytics library. Default is true if Hash or History navType is used.