snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/browser-tracker/markdown/browser-tracker.contextgenerator.md

Summary

Maintainability
Test Coverage
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/browser-tracker](./browser-tracker.md) &gt; [ContextGenerator](./browser-tracker.contextgenerator.md)

## ContextGenerator type

A context generator is a user-supplied callback that is evaluated for each event to allow an additional context to be dynamically attached to the event

<b>Signature:</b>

```typescript
type ContextGenerator = (args?: ContextEvent) => SelfDescribingJson | SelfDescribingJson[] | undefined;
```