Object used to configure the build-in analytics collector.

interface AnalyticsConfig {
    adTrackingDisabled?: boolean;
    defaultMetadata?: DefaultMetadata;
    licenseKey: string;
    randomizeUserId?: boolean;
}

Properties

adTrackingDisabled?: boolean

Flag to enable Ad tracking (default: false).

defaultMetadata?: DefaultMetadata

Default metadata to be sent with events. Fields of the SourceMetadata are prioritized over the default metadata.

licenseKey: string

The analytics license key

randomizeUserId?: boolean

Flag to use randomised userId not depending on device specific values (default: false).