ClickAnalytics Configuration

interface IClickAnalyticsConfiguration {
    autoCapture?: boolean;
    behaviorValidator?: ((value: string | number) => string | number);
    callback?: IValueCallback;
    coreData?: ICoreData;
    dataTags?: ICustomDataTags;
    defaultRightClickBhvr?: string | number;
    dropInvalidEvents?: boolean;
    pageTags?: {
        [name: string]:
            | string
            | number
            | boolean
            | string[]
            | number[]
            | boolean[]
            | object;
    };
    trackElementTypes?: string;
    urlCollectHash?: boolean;
    urlCollectQuery?: boolean;
}

Properties

autoCapture?: boolean

Automatic capture configuration. Default is true

behaviorValidator?: ((value: string | number) => string | number)

Validator to use for the data-bhvr value

callback?: IValueCallback

Callbacks configuration

coreData?: ICoreData

Core data configuration

dataTags?: ICustomDataTags

Custom Data Tags provided to ovverride default tags used to capture click data.

defaultRightClickBhvr?: string | number

Default Behavior value when Right Click event has occured. This value will be ovverriden if the element has the data-*-bhvr attribute present.

dropInvalidEvents?: boolean

Flag to drop events that do not have custom event names, no parentId and no data in content (basically no useful click data). Default will be false

pageTags?: {
    [name: string]:
        | string
        | number
        | boolean
        | string[]
        | number[]
        | boolean[]
        | object;
}

Page tags

trackElementTypes?: string

A list of element types to track. Default is "undefined" which means default elements ["a", "button", "area", "input"] are tracked. If set, it will combine with the default element types.

urlCollectHash?: boolean

Enables the logging of values after a "#" character of the URL. Default is "false."

urlCollectQuery?: boolean

Enables the logging of the query string of the URL. Default is "false."