# Follow one visit, from the first click to the payment.

A visitor journey is one visit, step by step: where someone came from, what they read and for how long, what they clicked, and what they paid. Aggregates tell you what usually happens. A journey shows what actually happened.

Try it on sample data: [Visitor journeys in the demo](/app/demo/visitors)

## A timeline for every visitor

Each visitor has a profile with their path in order: the referrer they arrived from, each page with the time spent on it, every custom event with its props, and any payment credited to them. Sessions are grouped, so a return later the same day reads as a second chapter.

Next to the timeline, the profile sums up what is known: first source, rough location, device and browser, number of sessions and lifetime revenue.

- Time on each page, counted only while the tab is visible
- Scroll depth, so you know whether a long post was read
- Events and their props inline, payments in the revenue colour

## Find the visitors worth reading

The visitors list can be filtered like the rest of the dashboard. Look at everyone who arrived from one campaign, everyone who reached checkout and left, or the people who paid this week. Each row opens their journey.

Reading ten journeys from a source you are unsure about often answers the question faster than any chart.

## Anonymous unless you choose otherwise

By default a visitor is a hash that rotates every day, with a generated name like Brave Stoat. You see a path, never a person. No cookie and no stored IP address are involved.

For a product with accounts, call identify after login with your own user id. The id is kept in memory for that page and sent with its events, so your signed-in users' activity carries the id you already use. Nothing is stored in the browser.

## Journeys come with the script. Identify is optional.

1. **Add the script.** Pageviews, time on page and scroll depth are tracked from the first load.

```html
<script
  defer
  data-site="cs_pk_your_site_key"
  data-domains="example.com"
  src="https://in.crispstats.com/d.js"
></script>
```

2. **Identify signed-in users.** Optional. After login, pass your user id and any traits worth seeing in the profile.

```js
// After login. The id stays in memory, nothing is stored.
crispstats.identify("user_42", { plan: "team" });
```

3. **Open Visitors.** Filter the list, open a visitor, and read their path from referrer to payment.

## Frequently asked questions

### Is this session recording?

No. There is no recording of the screen, the mouse or what people type. A journey is the list of pages, events and payments, with time on page and scroll depth.

### Can I follow a visitor across days?

Not by default: the anonymous id rotates every day. Persistent visitors, which you can turn on for a site, keep an id in the browser so returning visitors are recognised. That stores an identifier on the device and generally needs the visitor's consent.

### What does identify store?

Your user id and the traits you pass are sent with that page's events. The script keeps the id in memory only, so it is gone when the page unloads.

### How long are journeys kept?

As long as your plan keeps traffic data: two years on Starter, and longer on Growth and Scale.
