Skip to main content

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

ParameterTypeDescription
contextsArray<ConditionalContextProvider | ContextPrimitive | string>An array of contexts or conditional contexts
trackersArray<string>The tracker identifiers which the global contexts will be remove from
Returns:

void