# Filters

> Click any row to see only those visitors. Combine filters, remove them with one click.

Every row in every report is a filter. Click Google in the sources report, and every report shows only visitors from Google. Click a country, a page or a phone to do the same.

## Using filters

1. Click any row: a page, source, channel, campaign, country, region, device, browser or system.
2. The sentence, the numbers and every report now show only that slice. The filter shows as a chip at the top.
3. Click the cross on a chip to remove it.

Filters stack, so you can look at visitors from Instagram, on phones, in Sweden. The address of the page keeps your filters, so you can bookmark a view or send it to someone who has access.

## Two kinds of filters

Because Okidoki never links page views together, filters work in one of two ways:

| Filter | Applies to | Filters |
| --- | --- | --- |
| **Where the visit came from** | Only the page each visit started on, its bounces and time | `source`, `channel`, `campaign`, `utm_source`, `utm_medium` |
| **Everything else** | Every page view and event | `page`, `country`, `region`, `device`, `browser`, `os` |

So with a source filter, you see how many visitors came from Google and which pages they landed on, but not the pages they read after that, and not their clicks. Okidoki says so under the reports when it happens.

## Filters in the API

Add filters as query parameters to any report, summary, insights or export:

```bash
curl -H "Authorization: Bearer oks_..." \
  "https://okidoki.sh/api/v1/sites/mysite.com/reports/pages?period=30d&channel=Social&device=mobile"
```

| Parameter | Values |
| --- | --- |
| `page` | A path, like `/pricing`. End it with `*` to match every page below, like `/blog/*` |
| `source` | A source as shown in the report, like `google.com` |
| `channel` | One of: Direct, Search, Social, Chats, AI assistants, Email, Paid, Other sites |
| `campaign`, `utm_source`, `utm_medium` | The tag value, like `spring-sale` |
| `country` | A two-letter country code, like `SE` |
| `region` | A region code as shown in the report |
| `device` | `mobile`, `tablet` or `desktop` |
| `browser`, `os` | The name as shown in the report, like `Safari` or `iOS` |

## What filters do not do

- They do not follow visitors across pages.
- They do not need you to build segments or learn a query language.
- They are not saved. The address keeps them.

