Install Tracking from the Console

Using npm:

npm install di-web-analytics

Using yarn:

yarn add di-web-analytics

Initiate method: Set up user behaviour tracking on website or mobile app

init(url: string, trackingApiKey: string, properties: Properties, disable: boolean): void

Using the API key (TrackingID) that you generated.

ParametersDescriptionTypeRequiredDefault value

url

URL tracking

string

true

trackingApiKey

API key

string

true

properties

Custom param

Object

Optional

{}

disable

Enable/ disable tracking

bool

Optional

False

***Initialized Analytics must call before any other tracking function.

Last updated