Analytics filters and segments
Filter every dashboard report by source, page, country, event or property, combine conditions with AND and OR groups, and save them as reusable segments.
Filters#
Click any row in a panel to add an is filter (Alt/⌥-click for is not),
or use + Filter (F) to build one: choose a dimension, an operator and
one or more values. Active filters show as chips. Click a chip to change
it, Clear (Esc) to remove them all.
Filters apply to every metric, chart and panel on the page, and are kept in the URL.
Operators#
| Operator | Meaning |
|---|---|
is / is_not |
Equals / doesn't equal |
any_of / none_of |
Equals one of a list / none of a list |
contains / not_contains |
Substring match, case-insensitive |
starts_with |
Prefix match |
regex / not_regex |
Regular expression (up to 200 characters) |
gt, lt, between |
Numbers, for numeric properties |
AND and OR#
Separate filters are combined with AND. Put conditions in an OR group to match any of them: "channel is Email or utm_medium is newsletter". Up to 20 conditions in total.
What a filter selects#
- Visit dimensions (source, channel, UTM, country, device, browser, entry page…) select visits.
- Page selects visits that viewed the page, and pageview counts for that page.
- Event, goal and property filters select visits in which that event or goal happened.
The full list of dimensions and the JSON syntax used in URLs and the API are in Filters (API).
Segments#
A segment is a saved set of filters with a name, like "Paid traffic from
the US" or "Visits that saw pricing". Choose one with the Segment
picker (S). It combines with any filters you add on top.
Create one with + New segment, or save the current filters. Segments
belong to the site and are shared with everyone who can see it. Use them in
the API with segment_id=seg_….