Filter Properties

Filter Properties

Filter out specific properties from the event by setting them to null or removing them completely.

Configuration

OptionDescription
Properties to filter
Type: string
Required: True

Comma-separated list of properties to filter (e.g. "$set.email, $set.name, custom_prop")

Using our REST API you can create this transformation like so:

Terminal
# Create a new destination
curl --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 Properties",
"inputs": {
"propertiesToFilter": {
"value": ""
}
},
"enabled": true,
"template_id": "template-filter-properties"
}'