Skip to main content

node-tracker.trackercore.removeglobalcontexts

Home > @snowplow/node-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