Skip to content

Filters & segmentation

Filters narrow every metric, chart, and report to a slice of your traffic. Stack them to build segments. "Chrome users from Germany who landed on the pricing page from a Meta ad" is four filters chained together.

Filters live as chips above the chart. Add one by clicking Filter, clicking any row in a report (drill-down), or editing the URL.

Filter chips and add-filter dropdown

Filter dimensions

23 built-in filter types, plus unlimited custom-property filters that appear automatically when your tracking sends them.

  • Page: Page (URL path), Entry Page, Exit Page, Hostname, Folder, Errors (HTTP status codes).
  • Traffic source: Source, Channel, Referrer, UTM Source, UTM Medium, UTM Campaign, UTM Content, UTM Term.
  • Device & tech: Browser, Operating System, Device (Desktop / Mobile / Tablet).
  • Geo: Country, Region, City.
  • Conversions: Goal, Custom Event.
  • Custom data: every prop_* field your events carry. Each unique key creates its own filter automatically.

For UTM conventions, see UTM Parameters. For channel definitions, see Channel.

Operators

Most filters support eight operators. A few categorical ones only support is / is not, since partial matches don't make sense for them.

OperatorMeaningExample
isExact matchCountry is Germany
is notExact non-matchBrowser is not Chrome
containsSubstring matchPage contains /blog/
does not containSubstring excludedReferrer does not contain internal
begins withPrefix matchPage begins with /docs
does not begin withPrefix excludedPage does not begin with /admin
ends withSuffix matchPage ends with .pdf
does not end withSuffix excludedPage does not end with /preview

is / is not only: Browser, OS, Device, Goal, Custom Event, Errors. All eight operators apply to every other filter.

How filters combine

Standard OR-within / AND-across:

  • Multiple values inside one chip → OR. Country is Germany, France, Spain matches any of the three.
  • Multiple chips → AND. Country is Germany and Browser is Chrome matches only the intersection.

Build sophisticated segments without a query language. "Mobile users from organic Google search who hit a 404" is three chips: Device is Mobile, Source is google.com, Errors is 404.

Custom Properties (prop_*)

If you send custom data with events (plan name, article category, A/B variant), each property becomes a filter automatically. Send this from your site:

<script>
  window.statable.t('Signup', { plan: 'Pro', source_widget: 'pricing-table' });
</script>

Then prop_plan and prop_source_widget show up in the filter dropdown. Each supports all eight operators. The prop_ prefix avoids collisions with built-in dimensions.

For the event payload schema, see Event payload reference.

URL state

Active filters, date range, and Compare mode live in the URL querystring. Every dashboard view has a stable, copy-pasteable link.

The dashboard reads and writes a small set of query keys:

KeyMeaning
factive filters
pperiod preset
dsingle date
sd / edstart / end of a custom range
cmcompare mode toggle
cpcompare periods
mactive metric
tftimeframe (hourly, daily, weekly, monthly)
pt / tst / tt / gt / catactive sub-tab inside Pages / Traffic / Tech / Geo / Custom Analytics

Because everything is in the URL you can:

  • Bookmark a segment you check often.
  • Share a link in Slack and have your teammate open the same view.
  • Pin a tab to a public dashboard segment for one team or campaign.

Browser back/forward steps through filter history.

Removing filters

  • One filter. Click the × on the chip.
  • All filters. Click Clear all at the right of the chip row, or strip the querystring.
  • Drill-up. Use the browser back button to undo the most recent drill-down.

Saving common segments

Named segments aren't supported yet, but URL state means bookmarks work just as well. Build the view you want, save the URL, and each click jumps straight back to that segment.

Filters and Compare mode

Filters apply to both periods in Compare mode. Filter to Country = Germany and toggle Compare to see Germany this period vs Germany last period.


Ready to take control of your web analytics? Try Statable free for 30 days — no credit card required, full feature access, GDPR-compliant by default. Start your free trial or view a live demo.