Segments
A segment is a saved filter expression that identifies a set of actors based on event behavior — for example, “users who triggered report_exported at least 5 times in the last 30 days but never dashboard_shared.” Save a segment, rerun whenever you want a current count and actor list.
Prerequisites
- Plan: Segments are available on Trial, Pro, Business, and Enterprise. Starter accounts see an upgrade prompt instead of the Segments page. Counting by account additionally requires Business or Enterprise.
- Permissions:
view_segmentsto see and evaluate segments;manage_segmentsadditionally to create, edit, duplicate, or delete. Counting by account also needsview_accounts.
Create a segment
In the sidebar, click Segments, then New Segment in the top-right.
Fill in:
| Field | Required | Notes |
|---|---|---|
| Name | Yes | Unique within your tenant. |
| Description | No | Free text. |
| Default product | No | Pre-fills the Source App filter when the segment is evaluated. |
| Outer time range | No | Applies to the whole segment. Conditions can override per-condition. |
Then build the filter — at least one group with at least one condition. Within a group, conditions combine via the group’s logic setting (AND or OR). Multiple groups are always intersected — an actor must satisfy every group. Maximum 10 conditions total.
Condition types
- Did event — actor performed a specific event a given number of times (
at least,at most, orexactlyN). - Did NOT do event — actor did not perform the event the threshold number of times.
- Last event before — actor’s most recent occurrence of the event is before a date.
- Last event after — actor’s most recent occurrence is after a date.
- Actor identified — actor has been linked from anonymous to a real ID via Identify at any point.
- Actor anonymous — actor has only ever been seen anonymous (never identified).
Each event-based condition can carry its own time range that overrides the outer range. Options:
- All time — no time bound.
- Relative preset — Last 7 / 30 / 90 / 180 / 365 days, Last quarter, This quarter, Last month, Last year.
- Relative range — custom relative window.
- Absolute — specific start and end dates.
Click Create segment to save. You’re navigated to the segment’s detail page.
Evaluate a segment
The detail page shows the saved definition plus a results panel. Click Evaluate to compute the current member list against live event data. Optional filters above the results:
- Source App — narrows the run to one product (defaults to the segment’s saved default product if set).
- Count by — User (the default; returns actors) or Account (returns customer accounts that match). The Account option is disabled with a tooltip on Trial / Starter / Pro — it requires Business or Enterprise.
When Count by is set to Account, conditions are evaluated against events that have an account_id, and a customer account matches if its event set satisfies the conditions. Events without account_id are excluded entirely.
Results render as a paginated table (50 rows per page). When counting by user: actor_id, first seen, last seen, total events, per-condition event counts. When counting by account: account_id, first seen, last seen, plus the same per-condition aggregates rolled up across the account’s users. Click Load more to fetch the next page.
Computation is live — events ingested moments ago count immediately. A 30-second timeout applies; if a segment is too broad to evaluate inside the budget, the API returns a 504 and the UI surfaces the message. Tighten the time range, drop a condition, or filter to a single source app.
Templates
The create page includes a small set of starter templates — common shapes like “Active users (last 30 days)” or “Churned users (no activity in 60 days)” — that pre-fill the form. Use them as a base and adjust.
Edit, duplicate, delete
From a segment’s detail page (requires manage_segments):
- Edit — change the filter, name, or description. Your changes save together; re-evaluating uses the new definition.
- Duplicate — copies the segment with a new name. Useful when you want a small variation.
- Delete — permanently removes the segment. The actor data isn’t deleted — only the saved definition.
Common questions
My segment returns zero actors. Check that the events you reference (by name and optional category) actually exist in your data — use Event Explorer to confirm. Also verify the time range — a tight window plus a high threshold can drop the count to zero on smaller products.
Group logic is confusing. Multiple groups always intersect — actors must satisfy every group. The and / or setting on each group only controls how that group’s own conditions combine. For a union, use a single group with or logic.
Can I use a segment as a funnel filter? Not today. Funnels and segments are independent; segment IDs are not accepted as a funnel filter. A future feature may bridge them.
Can I export the actor list? Not from the Segments page UI today. The list is available via the POST /v1/segments/{id}/evaluate API; iterate over the paginated cursor to fetch all actors.