Filter Out

Last updated:

This app enables you to create filters which prevent PostHog from ingesting data from your product unless it passes those filters. Any events which do not match the filter requirements are skipped over and are not ingested.

Requirements

Using the Filter Out app requires either PostHog Cloud, or a self-hosted PostHog instance running version 1.30.0 or later.

Not running 1.30.0? Find out how to update your self-hosted PostHog deployment!

Installation

  1. Visit the 'Apps' page in your instance of PostHog.
  2. Search for 'Filter Out' and select the app, press Install.
  3. Follow the on-screen steps to configure the app.

This app will only work on events ingested after the app was enabled.

Configuration

The app can be configured via a JSON file which specifies the properties you would like to filter.

In the example config below, the app will only keep events where all of the following conditions are met:

  • Email does not contain yourcompany.com
  • Host is not localhost:8000
  • Browser version greater than 100
[
{
"property": "email",
"type": "string",
"operator": "not_contains",
"value": "yourcompany.com"
},
{
"property": "host",
"type": "string",
"operator": "is_not",
"value": "localhost:8000"
},
{
"property": "browser_version",
"type": "number",
"operator": "gt",
"value": 100
}
]

The followed types and operators are allowed:

TypeOperators
numbergt, gte, lt, lte, eq, neq
stringis, is_not, contains, not_contains, regex, not_regex
booleanis, is_not

FAQ

Who maintains this app?

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

What if I have feedback on this app?

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

Or, if you see the feedback widget enabled, use that!

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum, or drop us a message.

Questions?

Was this page useful?

Next article

First Time Event Tracker

This app adds two new properties to events which you specify: is_event_first_ever is_event_first_for_user Using these events, you can track if each event is the first time that event has run for a individual user , the first time it has run ever , both of these, or neither. Note: For Pageview and Identify events, use the event names $pageview and $identify respectively. Requirements The First Time Event Tracker requires either PostHog Cloud, or a self-hosted PostHog instance running…

Read next article