> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crispstats.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> CrispStats is a hosted, privacy-first web analytics product. It has no self-hosted edition, no session replay, no heatmaps, no A/B testing, no mobile SDKs and no data import except a site's history from a Plausible export (Settings, Import and export).
> The script global is crispstats(...), site keys start with cs_pk_ and secret API keys start with cs_sk_. The script is served from https://in.crispstats.com/d.js and the REST API lives at https://crispstats.com/api/v1.
> There is no npm package to install. Integrations copy the script tag, the queue stub, crispstats.d.ts and proxy code from these docs or from Settings, Tracking code in the dashboard. A first-party proxy forwards one path of the site to https://in.crispstats.com/p/ and forwards only content-type, user-agent, accept-language, referer, origin, if-none-match and x-forwarded-for, never cookies.

# Visitor profiles and journeys in CrispStats

> Browse the CrispStats visitors list by segment, open a visitor's profile and follow each session step by step, and learn what a visitor id covers.

The **Visitors** screen lists the people who visited your site in the selected range, and each visitor opens into a profile with their numbers, 12 weeks of activity and a step-by-step journey of every session. By default a visitor is an anonymous id that resets every day, so a profile covers one day of visits. With [identify](https://docs.crispstats.com/track/identify-users.md) or [persistent visitors](https://docs.crispstats.com/privacy/persistent-visitors.md), a profile follows the same person across days.

Open it from the sidebar under **Analytics**, **Visitors**, or press `g` then `v`. The list follows the date range and filters in the top bar.

## Find a visitor

**1. Pick a segment**

Choose a tab: **All**, **Customers**, **Identified**, **Online** or **Returning**.

**2. Search**

Type in the search field. The list updates after a short pause.

**3. Sort**

Use the sort menu, or select a column header, to order by **Last seen**, **Revenue**, **Sessions** or **Pageviews**, from high to low.

**4. Open a profile**

Select a row. **Visitors** at the top of the profile takes you back to the same list view.

### Segments

| Segment | Who is listed |
| - | - |
| **All** | Everyone with a visit in the range that passes the filters. |
| **Customers** | Visitors with revenue. A visitor becomes a customer with their first attributed payment. See [revenue attribution](https://docs.crispstats.com/revenue/overview.md). |
| **Identified** | Visitors your site has called `crispstats.identify` for. |
| **Online** | Visitors whose last activity was in the last 5 minutes, at the moment you load the list. For a view that updates by itself, use [Realtime](https://docs.crispstats.com/dashboard/realtime.md). |
| **Returning** | Visitors with more than one session. |

### Search

Search matches part of the city, the two-letter country code, and the user id and email of identified visitors. Generated names such as the ones in the list are not stored, so they cannot be searched, even though the search field mentions names.

### Columns

| Column | What it shows |
| - | - |
| **Visitor** | The generated name, with the email (or user id) underneath when the visitor is identified. A dot marks visitors who are online. |
| **Location** | The most recent city or country. |
| **First source** | Where their first session in the range came from. |
| **Device** | Device type, browser and operating system of the latest session. |
| **Sessions**, **Pageviews** | Totals for the visitor. |
| **Revenue** | Revenue attributed to the visitor. |
| **Last seen** | How long ago they were last active, or **Online**. |

The list shows 25 visitors per page. The segment, search, sort and page are kept in the URL as `segment`, `q`, `sort` and `page`, next to the range and filters, so you can share or bookmark any list view.

## Read a visitor's profile

The profile has three parts.

**Who they are.** The generated name and avatar, with the email and user id underneath when the visitor is identified, and whether they are **On the site now** or **Not on the site**. An anonymous profile notes that no cookies and no IP address are kept and that the name is generated. Below that: **First source**, **Campaign** (the campaign of their first stored session, if it had one), location, and device with browser and operating system.

**Their numbers.** **First seen**, **Last seen**, **Sessions**, **Pageviews**, **Events** and **Lifetime revenue**.

**Activity.** A strip of pageviews per day over the last 12 weeks, with the number of days they were active.

## Follow the journey

**Journey** lists the visitor's sessions, newest first, as **Session N of M**. Each session shows its date and time, source, device and browser, the revenue it brought, and its number of steps. The newest session starts open. Select any session to open its timeline.

The journey covers the visitor's latest 50 sessions and up to 300 steps per session. A session with more than 12 steps first shows its first 10, with a button for the rest. The list shows 20 sessions at a time, with a button for earlier ones.

Each step has a time to the second, in the site's timezone, and one of these types:

| Step | What it shows |
| - | - |
| **Pageview** | The path, and how long the visitor stayed before the next step. |
| **Event** | The custom event name and its properties. See [custom events](https://docs.crispstats.com/track/custom-events.md). |
| **Revenue** | **Paid** with the amount, or **Refunded** for a refund. |
| **Identify** | **Identified**, with the traits you sent. |
| **Error** | The JavaScript error message, the page it happened on and its details. See [errors](https://docs.crispstats.com/health/errors.md). |

## What a visitor id means

How far a profile reaches depends on how the visitor is recognised.

> [tab] Default
>
> CrispStats counts visitors with an anonymous id derived from a hash that rotates every day, and stores nothing in the browser. The same person gets a new id the next day, so their profile shows that day's sessions only, and **Returning** only finds people with more than one session on the same day. A session that is still open at midnight in the site's timezone keeps its id for up to 30 minutes, so a visit is not cut in two. See [cookieless tracking](https://docs.crispstats.com/privacy/cookieless-tracking.md).

> [tab] Persistent visitors
>
> With persistent visitors turned on for the site and `data-persist` on the script tag, the script keeps a random id in the browser and the same anonymous visitor is recognised across days. Their profile then collects all their sessions. This stores an identifier on the visitor's device, so check whether you need consent first. See [persistent visitors](https://docs.crispstats.com/privacy/persistent-visitors.md).

> [tab] Identified
>
> When your site calls `crispstats.identify` with your own user id, sessions with that id are grouped under one profile across days and devices, and the profile shows the user id and the `email` trait if you sent one. See [identify users](https://docs.crispstats.com/track/identify-users.md).

```js theme={"theme":{"light":"github-light","dark":"github-dark"}}
// After the user signs in: group their sessions under your own user id.
crispstats.identify("user_42", { email: "ada@example.com", plan: "pro" });
```

## Next steps

> [card] [Identify users](https://docs.crispstats.com/track/identify-users.md)
>
> Attach your own user id so profiles follow people across days.

> [card] [Watch visitors live](https://docs.crispstats.com/dashboard/realtime.md)
>
> See who is on the site now and peek at any visitor.

> [card] [Measure retention](https://docs.crispstats.com/dashboard/retention.md)
>
> Follow cohorts of identified and persistent visitors over time.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.