api-docs/docs/node-tracker/markdown/node-tracker.contextfilter.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@snowplow/node-tracker](./node-tracker.md) > [ContextFilter](./node-tracker.contextfilter.md)
## ContextFilter type
A context filter is a user-supplied callback that is evaluated for each event to determine if the context associated with the filter should be attached to the event
<b>Signature:</b>
```typescript
type ContextFilter = (args?: ContextEvent) => boolean;
```