Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 852 Bytes

File metadata and controls

25 lines (15 loc) · 852 Bytes

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>, trackers?: Array<string>): void;

Parameters

Parameter Type Description
contexts Array<ConditionalContextProvider | ContextPrimitive> An array of contexts or conditional contexts
trackers Array<string> The tracker identifiers which the global contexts will be remove from

Returns:

void