api-docs/docs/browser-tracker/markdown/browser-tracker.addglobalcontexts.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@snowplow/browser-tracker](./browser-tracker.md) > [addGlobalContexts](./browser-tracker.addglobalcontexts.md)
## addGlobalContexts() function
All provided contexts will be sent with every event
<b>Signature:</b>
```typescript
declare function addGlobalContexts(contexts: Array<ConditionalContextProvider | ContextPrimitive> | Record<string, ConditionalContextProvider | ContextPrimitive>, trackers?: Array<string>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| contexts | Array<ConditionalContextProvider \| ContextPrimitive> \| Record<string, ConditionalContextProvider \| ContextPrimitive> | An array of contexts or conditional contexts |
| trackers | Array<string> | The tracker identifiers which the global contexts will be added to |
<b>Returns:</b>
void