Documentation
04Usage guide

Expressions

The text filter language: conditions, values, boolean logic, and examples.

A filter can be written as text. The text and the visual builder describe the same filter, and the panel shows a natural-language description beneath the expression. If the expression is invalid, click the indicator to open the syntax help, which lists the fields and operators available for the current page.

Conditions

<field> <operator> <value>

For example:

page.path eq "/pricing"
geo.country in ["US", "GB"]
session.views gte 3
client.deviceType neq "mobile"
  • Field identifiers are case-sensitive (for example page.path). Operators and boolean keywords are case-insensitive.
  • Operators: eq, neq, in, notIn, contains, startsWith, endsWith, gt, gte, lt, lte, between, exists, notExists, isNull, notNull, isEmpty, notEmpty. The operators exists, notExists, isNull, notNull, isEmpty, and notEmpty take no value.

Values

  • Strings use JSON double quotes: "google.com".
  • Numbers and booleans are written without quotes: 3, true.
  • Use null to compare with a null value.
  • Use [value, value, ...] for sets with in and notIn.
  • between takes exactly two ordered values: session.durationMs between [30000, 300000].
  • Time comparisons can use durations such as 14d or 1w, and anchors such as @now-14d.

Boolean logic

Combine conditions with AND, OR, and NOT:

page.path startsWith "/docs" AND referrer.domain eq "google.com"
NOT client.deviceType eq "mobile"
  • AND binds more tightly than OR.
  • Use parentheses to control precedence.
  • AND(...) and OR(...) keep an explicit group even when it has one condition.

Event properties

Event data is structured, so reference a property with a JSON pointer:

event.name eq "signup" AND event.payload("/plan") eq "pro"

Limits

An expression can be up to 65,536 characters long.

More power

The language can also express collections, aggregates, and sequences over time. See advanced filters.

Find field IDs, types, units, and allowed operators in the filter field reference.