browser-tracker.newtracker
Home > @snowplow/browser-tracker > newTracker
newTracker() function
Initialise a new tracker
Signature:declare function newTracker(trackerId: string, endpoint: string, configuration?: TrackerConfiguration): BrowserTracker | null | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
trackerId | string | The tracker id - also known as tracker namespace |
endpoint | string | Collector endpoint in the form collector.mysite.com |
configuration | TrackerConfiguration | The initialisation options of the tracker |
BrowserTracker | null | undefined