Skip to main content

browser-tracker.trackercore.removeglobalcontexts

Home > @snowplow/browser-tracker > TrackerCore > removeGlobalContexts

TrackerCore.removeGlobalContexts() method

Removes previously added global context, performs a deep comparison of the contexts or conditional contexts

Signature:
removeGlobalContexts(contexts: Array<ConditionalContextProvider | ContextPrimitive | string>): void;

Parameters

ParameterTypeDescription
contextsArray<ConditionalContextProvider | ContextPrimitive | string>An array containing either contexts or a conditional contexts
Returns:

void