browser-tracker.removeglobalcontexts
Home > @snowplow/browser-tracker > removeGlobalContexts
removeGlobalContexts() function
All provided contexts will no longer be sent with every event
Signature:declare function removeGlobalContexts(contexts: Array<ConditionalContextProvider | ContextPrimitive | string>, trackers?: Array<string>): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| contexts | Array<ConditionalContextProvider | ContextPrimitive | string> | An array of contexts or conditional contexts |
| trackers | Array<string> | The tracker identifiers which the global contexts will be remove from |
void