Filter reports
Filters narrow a report to the visits that match, such as mobile visits from Sweden or visits from one campaign. They live in the page’s address, so they change only what you see, and a link to the page keeps them. Most reports take them the same way; Which reports filter says where they differ.
Where to find it
Filter is in the toolbar at the top of a report, after the period and Compare. Press F to open it. On a phone, it’s at the right of the period row, shown as just an icon on reports that compare periods.
The menu has up to three tabs: Filters, Segments, and Cohorts. This article covers the first. Segments save a set of filters under a name, and cohorts follow the same people over time.
Add a filter
Open Filter. It lists the fields that have values in this report’s period, each with the value in use beside it.
Pick a field, such as Country. Its values are listed largest first, ten at a time, with how many visitors each had. Search to find one, or select Show more.
Select a value. The report counts only the matching visits, and the filter appears as a chip under the toolbar: “Country is Sweden”.
On the Overview, you can also select a row in Pages, Sources, Locations, or Devices to filter by it. The list then shows only that row, with a check; select it again to bring the whole list back.
To remove a filter, select × on its chip. With more than one chip, Clear all removes every filter, segment, and cohort, as the Overview’s Back to all traffic does. The status line at the bottom of the window says what’s on, such as “2 filters” or “1 segment · 2 filters”.
How filters combine
- One value per field, matched exactly. Picking another value for the same field replaces the one in use. The menu’s list for a field ignores that field’s own filter, so you can switch from Sweden to Norway in one step.
- All must match. Country is Sweden and Device is Mobile counts mobile visits from Sweden.
- Filters pick visits. Every number in the report, the chart and the lists included, counts only the visits that match.
- Page and Hostname belong to page views. A visit matches Page when it viewed that page at least once. Visitors and visits count those visits; page views count only that page’s views. With Page and Hostname both on, one page view must match both.
- Entry page matches only the page a visit started on.
The 14 fields
The menu lists only the fields with values in the period, except Hostname, which is always there.
docs.example.com, lowercase and without www.. You can type one and press ReturnEnter, even when the period has none to pick.utm_campaign.utm_medium, utm_term, and utm_content.Sources and campaign tags appear as we keep them. Email addresses are replaced with [email], and phone numbers and IP and MAC addresses with [hidden]; IDs become short codes, or [hidden] in term and content. You filter by those values.
Which reports filter
Sessions has Filter only while the site’s Individual visits is on; it’s off by default. Goals & events and an event’s or goal’s page show Filter once the site has a saved segment or cohort.
Keep or share a filtered view
Filters live in the page’s address, so a filtered view is a link. Share › Copy link copies it for anyone in your workspace:
https://app.lyli.io/sites/s_k3m9x2p7qa?country=SE&device=mobile- Across reports, save a segment. Moving to another report from the sidebar keeps the period, the comparison, the segment, and the cohort, but not the filters. To keep a set of filters, open Filter › Segments and select Save current filters as a segment…
- Downloads and the API. Share › Download CSV downloads what the page shows, filtered. Share › Copy as API request copies the same view as a request to the API, filters included.
- Saved reports keep their own settings, not the filters: those come from the toolbar.
Limits and edge cases
- A value that isn’t in the site’s data, from an edited address for example, shows as a dashed chip marked “not found”, and nothing matches it.
- Page patterns. In the address or the API, Page and Entry page can end in
*, as goals do:page=/blog/*matches every page under /blog/. Segments take patterns too. - History imported from Google Analytics counts in the Overview with filters of one kind: pages (Page, with or without Hostname), entry pages, sources (Channel, Source, and the campaign tags), locations, or devices, browsers, and systems. Filters of two kinds, Hostname alone, a page pattern, a segment, or a cohort leave imported days out, and the Overview says so.
Totals can be small. A narrow filter in a short period can leave a handful of visits, or one. Treat what a filtered view shows as your visitors’ data.