# reveata visitors

> Search visitors, open a visitor's profile and list every page, goal and payment in their journey.

`reveata visitors` works with [visitor profiles](https://reveata.com/docs/visitors-and-profiles): find visitors, see one visitor's totals, sessions, goals and payments, and list every event of their journey. It needs the `analytics:read` scope. Revenue and customers' names and emails follow the website's [revenue visibility](https://reveata.com/docs/team-and-roles) for your role.

`visitors list` filters by identity (`--search`, `--identified`, `--customers`), behaviour (`--goal` completed, `--page` viewed or `--page-contains`, `--min-sessions 2` for returning visitors), last known location and device (`--country`, `--region`, `--city`, `--device`, `--browser`, `--os`) and first touch (`--channel`, `--referrer`, `--source`, `--utm-source`, `--utm-medium`, `--utm-campaign`). Text values match exactly; all filters combine with AND.

### `reveata visitors list`

Visitors by most recent activity.

--search matches the visitor id, the user id or email prefix you sent with identify, or part of the name. --sort: last_seen (default), first_seen, revenue or sessions. --from/--to (YYYY-MM-DD, website timezone) limit by last activity. --goal and --page keep visitors who completed that goal or viewed that path; location and device are the last known ones; --channel, --referrer, --source and --utm-* match the first visit. Filters combine with AND. Follows pagination until --limit visitors are listed (default 50, max 10000).

Options:

- `--site <id|domain>`: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
- `--search <text>`: Visitor id, identified user id or email prefix, or part of the name
- `--sort <key>`: Sort key, descending (see the command help)
- `--identified <true|false>`: Only identified (true) or anonymous (false) visitors
- `--customers`: Only visitors with at least one payment
- `--goal <name>`: Goal name, e.g. signup
- `--page <path>`: Only visitors who viewed this path
- `--page-contains <text>`: Only visitors who viewed a path containing this text
- `--country <code>`: Last known country, e.g. DE
- `--region <name>`: Last known region
- `--city <name>`: Last known city
- `--device <device>`: desktop, mobile, tablet or other
- `--browser <name>`: Browser, e.g. Chrome
- `--os <name>`: Operating system, e.g. iOS
- `--channel <channel>`: First-touch channel, e.g. organic_search
- `--referrer <host>`: First-touch referrer host
- `--source <name>`: First-touch source, e.g. Google
- `--utm-source <value>`: First-touch utm_source
- `--utm-medium <value>`: First-touch utm_medium
- `--utm-campaign <value>`: First-touch utm_campaign
- `--min-sessions <n>`: Only visitors with at least this many visits (2 = returning)
- `--from <YYYY-MM-DD>`: Start day (implies --period custom)
- `--to <YYYY-MM-DD>`: End day (implies --period custom)
- `--limit <n>`: Maximum number of rows

Calls [`GET /api/v1/websites/{website}/visitors`](https://reveata.com/api-reference/list-visitors) (`analytics:read`).

```bash
reveata visitors list --site example.com
reveata visitors list --site example.com --search jane@example.com --json
reveata visitors list --site example.com --customers --sort revenue --limit 20
reveata visitors list --site example.com --page /pricing --country DE --device mobile
reveata visitors list --site example.com --utm-campaign launch --min-sessions 2
```

### `reveata visitors get <visitorId>`

One visitor: profile, totals, sessions, goals and payments.

Options:

- `--site <id|domain>`: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)

Calls [`GET /api/v1/websites/{website}/visitors/{visitorId}`](https://reveata.com/api-reference/get-visitor) (`analytics:read`).

```bash
reveata visitors get 5f2c9a1e7b3d4c8a --site example.com
```

### `reveata visitors journey <visitorId>`

Every event of a visitor: pages, goals, outbound links and payments.

Newest first by default (--order asc for oldest first). Follows pagination until --limit events are listed (default 100, max 10000).

Options:

- `--site <id|domain>`: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
- `--limit <n>`: Maximum number of rows
- `--order <asc|desc>`: Oldest (asc) or newest (desc) first

Calls [`GET /api/v1/websites/{website}/visitors/{visitorId}/journey`](https://reveata.com/api-reference/get-visitor-journey) (`analytics:read`).

```bash
reveata visitors journey 5f2c9a1e7b3d4c8a --site example.com --order asc
```
