Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 775 Bytes

File metadata and controls

25 lines (15 loc) · 775 Bytes

Home > @snowplow/browser-tracker > setCollectorUrl

setCollectorUrl() function

Specify the Snowplow collector URL. Specific http or https to force it or leave it off to match the website protocol.

Signature:

declare function setCollectorUrl(collectorUrl: string, trackers?: Array<string>): void;

Parameters

Parameter Type Description
collectorUrl string The collector URL, with or without protocol
trackers Array<string> The tracker identifiers which will be configured

Returns:

void