0.0.7 • Published 3 years ago

@posthog/filter-out-plugin v0.0.7

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

🦔 PostHog Filter Out Plugin

Injest only those events satisfying the given filter conditions

Configuration

The plugin configuration requires a JSON file with the following structure:

Example filters:

Only keep events where all the following conditions are met:

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

Allowed types and their operators:

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

License

MIT

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago