Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 663 Bytes

File metadata and controls

25 lines (15 loc) · 663 Bytes

Home > @snowplow/browser-tracker > newTracker

newTracker() function

Initialise a new tracker

Signature:

declare function newTracker(trackerId: string, endpoint: string): BrowserTracker;

Parameters

Parameter Type Description
trackerId string The tracker id - also known as tracker namespace
endpoint string Collector endpoint in the form collector.mysite.com

Returns:

BrowserTracker