Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Latest commit

 

History

History
25 lines (15 loc) · 827 Bytes

File metadata and controls

25 lines (15 loc) · 827 Bytes

Home > @snowplow/browser-tracker > addGlobalContexts

addGlobalContexts() function

All provided contexts will be sent with every event

Signature:

declare function addGlobalContexts(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 added to

Returns:

void