Property Filter

Last updated:

|Edit this page

This transformation sets all specified properties on ingested events to null, effectively preventing PostHog from collecting information you do not want it to use.

It is used by teams such as WittyWorks to protect user privacy by removing unneeded geographic data.

Requirements

Using this requires either PostHog Cloud with the data pipelines add-on, or a self-hosted PostHog instance running a recent version of the Docker image.

Installation

  1. Log in to your PostHog instance
  2. Click "Data pipeline" in the left sidebar
  3. Search for 'Property Filter' press 'Install'
  4. Configure the by transformation by following the onscreen instructions.

Note: This transformation effectively removes information from PostHog events by setting properties to null. Apps on PostHog run in sequence, so it usually makes sense to place this transformation at the end of a sequence.

Note: If you are filtering $ip, event.ip will also be set to null.

Does this filter properties for retrospective events?

No. The Property Filter transformation will only work on events ingested after it was enabled.

Configuration

OptionDescription
List of properties to filter out:
Type: string
Required: True
Separate properties with commas, without using spaces, like so: foo,bar,baz

FAQ

Is the source code for this transformation available?

PostHog is open-source and so are all transformations on the platform. The source code for the Property Filter transformation is available on GitHub.

Who created this transformation?

This transformation was created by community members at WittyWorks to protect the privacy of their users. We'd like to thank Christian and Lukas Kahwe Smnith for creating the Property Filter.

Who maintains this?

This is maintained by the community. If you have issues with it not functioning as intended, please let us know!

What if I have feedback on this destination?

We love feature requests and feedback. Please tell us what you think.

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum.

Questions?

Was this page useful?

Next article

Taxonomy Standardizer

This transformation standardizes all your event names into a single pattern, so that data becomes more consistent and marketing teams aren't driven wild. Supported taxonomies This transformation can convert from any of these taxonomies, to any other. Camel Case: helloThereHedgehog Pascal Case: HelloThereHedgehog Snake Case: hello_there_hedgehog Kebab Case: hello-there-hedgehog Spaces: hello there hedgehog Installation In PostHog, click the " Data pipeline " tab in the left sidebar. Search…

Read next article