Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

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