Home > @snowplow/browser-tracker > setCollectorUrl
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;| Parameter | Type | Description |
|---|---|---|
| collectorUrl | string | The collector URL, with or without protocol |
| trackers | Array<string> | The tracker identifiers which will be configured |
Returns:
void