Filtering & Segmentation

Filters let you segment your analytics data by any dimension - view traffic from a specific country, analyze mobile-only visitors, or isolate a particular UTM campaign.

Adding filters

In the dashboard

  1. Click the Add Filter button in the filter bar
  2. Select a property (e.g., Country, Browser, Page)
  3. Choose an operator (e.g., is, contains)
  4. Enter a value
  5. The dashboard updates immediately with filtered data

Active filters appear as badges in the filter bar. Click the × on any badge to remove it.

You can also click any row in a breakdown table to quickly add it as a filter. For example, clicking "Chrome" in the Devices table automatically adds a browser:is:Chrome filter.

In the API

Pass filters as query parameters using the filters[] array:

GET /v1/analytics/{projectId}/overview?period=30d&filters[]=country_code:is:US

Multiple filters can be combined (AND logic):

GET /v1/analytics/{projectId}/pages
  ?period=30d
  &filters[]=country_code:is:US
  &filters[]=browser:is:Chrome
  &filters[]=device_type:is:Desktop

Filter syntax

Each filter follows the format:

property:operator:value

Operators

OperatorDescriptionExample
isExact matchcountry_code:is:US
is_notExclude exact matchbrowser:is_not:Safari
containsSubstring matchpage:contains:/blog
not_containsExclude substringsource:not_contains:google

Available properties

PropertyDescriptionExample Values
pagePage URL path/pricing, /docs/setup
entry_pageFirst page in session/, /blog/intro
exit_pageLast page in session/signup, /checkout
sourceReferrer sourceGoogle, twitter.com, Direct
country_codeISO 3166-1 alpha-2 country codeUS, GB, DE
subdivisionRegion/stateCalifornia, London
cityCity nameSan Francisco, Berlin
browserBrowser nameChrome, Firefox, Safari
osOperating systemWindows, macOS, Android
device_typeDevice categoryDesktop, Mobile, Tablet
utm_sourceUTM source parametergoogle, newsletter
utm_mediumUTM medium parametercpc, email, social
utm_campaignUTM campaign parameterspring-sale, launch
utm_termUTM term parametererror monitoring
utm_contentUTM content parameterhero-cta, sidebar
event_nameCustom event nameSignup, Purchase

Filter combinations

Filters are combined with AND logic - all conditions must be true for a record to match.

filters[]=country_code:is:US&filters[]=browser:is:Chrome

This returns data where the country is US and the browser is Chrome.

Segmentation examples

Geographic analysis

Compare traffic from different regions:

# US traffic only
filters[]=country_code:is:US

# European traffic (use multiple requests)
filters[]=country_code:is:DE
filters[]=country_code:is:FR
filters[]=country_code:is:GB

Mobile vs desktop

Analyze device-specific behavior:

# Mobile visitors
filters[]=device_type:is:Mobile

# Desktop visitors
filters[]=device_type:is:Desktop

Compare bounce rates and visit durations between segments to identify device-specific UX issues.

Campaign performance

Isolate traffic from a specific marketing campaign:

filters[]=utm_campaign:is:spring-sale&filters[]=utm_medium:is:email

Content analysis

Focus on blog traffic:

filters[]=page:contains:/blog

Or exclude documentation pages:

filters[]=page:not_contains:/docs

Source-specific landing page analysis

See which pages organic search visitors land on:

filters[]=source:is:Google

Then check the Entry Pages tab to see their landing pages.

Filters apply globally

When a filter is active, it applies to all dashboard components:

  • KPI cards show filtered metrics
  • Time series chart shows filtered trends
  • All breakdown tables show filtered data
  • Comparisons use the filter for both periods

This makes it easy to build a complete picture of any audience segment.