Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 828 Bytes

File metadata and controls

26 lines (16 loc) · 828 Bytes

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

Returns:

BrowserTracker | null | undefined