Filter out events where property values satisfy the given condition
Configuration
Option | Description |
---|---|
Filters to apply Type: json Required: False | A JSON file containing an array of filters to apply. See the README for more information. |
Events to filter out Type: string Required: False | A comma-separated list of event names to filter out (e.g. $pageview,$autocapture) |
Keep event if any of the filtered properties are undefined? Type: choice Required: False |
Using our REST API you can create this transformation like so:
Terminal
# Create a new destinationcurl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \--data '{"type": "transformation","name": "Filter Out Plugin","inputs": {},"enabled": true,"template_id": "plugin-posthog-filter-out-plugin"}'