Pick out the exact visitors you want to analyze.
Use the visual builder or the expression language to combine visit context, behavior, and structured event properties. Every analysis view that supports filters uses the same filter model.
geo.country in ["US", "DE", "JP", "GB"] AND client.deviceType eq "desktop" AND EVENT { $.name eq "signup" AND $.payload("/plan") eq "pro" } exists AND countDistinct(PAGE -> path) gte 4Change a value, add a condition or switch a group to OR. Suggestions come from the same sample, and the results on the right are recomputed by the real engine.
An ordered sequence describes endpoints that happen one after another. Today, without only applies between the two endpoints. It does not mean nothing happened afterwards.
How filters work in InsightFlare
One filter language drives every dashboard page. You can build it with clicks or write it as text, and both stay in sync.
Field conditions
Most questions are a field, an operator and a value. Write them as text, or pick them in the visual builder, which only offers operators that make sense for the field type.
- 49 fields in groups: page, session, visitor, referrer and channel, UTM, client, geo, event, performance and user.
- Operators: eq, neq, in, notIn, contains, startsWith, endsWith, gt, gte, lt, lte, between.
- No-value checks: exists, notExists, isNull, notNull, isEmpty, notEmpty.
- Strings use double quotes, lists use [a, b], and between takes exactly two ordered values.
- Field names are case sensitive. Operators and keywords are not.
geo.country in ["US", "GB"] client.deviceType neq "mobile" page.path startsWith "/docs" session.durationMs between [30000, 300000] utm.campaign exists
AND, OR and NOT
Combine conditions into the exact group you mean. The builder shows the same thing as nested groups with a toggle between all and any.
- AND binds tighter than OR. Use parentheses to change that.
- NOT negates a single condition or a whole group.
- AND(...) and OR(...) keep a single-condition group explicit.
- An expression can be up to 65,536 characters long.
(geo.country eq "US" OR geo.country eq "GB") AND NOT client.deviceType eq "mobile" AND page.path startsWith "/docs"
Event properties
Custom events carry structured data. Reference a property with a JSON Pointer, so you can filter on a plan or an order total without flattening it first.
- Write event.payload("/plan"), or $.payload("/plan") inside a collection.
- Nested values work the same way, for example /order/total.
- The builder takes the same pointer in its property field.
event.name eq "signup" AND event.payload("/plan") eq "pro"
Collections and aggregates
Some questions are about what a session or visitor did, not about a single row. Collections (PAGE, EVENT, SESSION) hold the items they own, and a reducer turns them into one value you can compare.
- Narrow a collection with a selector in braces: EVENT { $.name eq "deploy" }.
- Reducers: count, countDistinct, sum, avg, min, max, first, last, nth.
- Project a member with ->, as in countDistinct(PAGE -> path).
- PAGE { ... } exists matches when at least one item passes the selector.
count(EVENT) gte 3 countDistinct(PAGE -> path) gte 5 first(PAGE -> path) eq "/pricing" nth(PAGE -> path, 2) eq "/docs" sum(EVENT { $.name eq "deploy" } -> payload("/amount")) gt 1000 PAGE { $.path eq "/pricing" } exists
Time and sequences
To ask whether one action followed another, describe the order. A sequence is evaluated inside one session or one visitor, with limits on total span and on the gap between steps.
- sequence([...]) lists steps in order. $span, $gap(from, to) and $same(value) go in braces after it.
- adjacent(sequence) requires the steps to happen back to back. without(sequence, collection) requires that nothing from the collection happened in between.
- time(item) and anchors like @now-14d compare against the current time. Durations are written 14d, 1w, 1h.
- periods(collection, 1w) groups by calendar period, and $items holds the items of one group.
sequence([EVENT { $.name eq "signup" }, EVENT { $.name eq "deploy" }]) { $span lte 14d AND $gap(1, 2) lte 7d AND $same($.payload("/plan")) } exists time(last(PAGE)) gte @now-14d periods(EVENT, 1w) { count($items) gte 3 } exists
Scope, saved filters and presets
A filter applies to events, sessions or visitors, and the filter button shows which one the current page uses. Save a filter once and reuse it from the same panel.
- Event scope returns matching events and page views. Session and visitor scope return whole sessions or visitors that match.
- Sequences need session or visitor scope.
- Saved filters are either personal or shared with the team, and shared ones show their author.
- Built-in presets cover acquisition, device, visit behavior, session engagement, visitor behavior, performance and data quality.
- Funnel and goal steps use field conditions only. Collections, sequences and aggregates are not allowed there.
Combine context and behavior
Find mobile visitors from one country who signed up, or sessions that viewed at least a certain number of pages.
Filter by event data
Filter a named event by a JSON payload property such as plan, project type, or result status.
Match an order of events
Find visitors or sessions that completed one endpoint and then another within a set time span.
Build visually, then check the expression
The visual builder and the expression (DSL) describe the same filter. Use the expression when it is easier to review, copy, or generate as text.
- 1Choose visitor, session, or event scope, depending on what the result should count.
- 2Add field conditions, collection selectors, or reducers, and group them explicitly.
- 3Sequences only work with visitor or session scope.
- 4Read the plain-language description before applying or saving the filter.
How filters work
It decides whether the result counts visitors, sessions, or individual events, and which operations across records are allowed.
No. The visual builder produces the same expression, and a text expression can be loaded back into the builder when its conditions are supported.
No. In a sequence it only applies between the two endpoints. It does not mean the visitor never did it afterwards.