> ## 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.

# Watch visitors and sales live in CrispStats

> Use the CrispStats realtime screen to see who is on your site now, whether that is normal, where they are, what they are doing, and every sale and new customer the moment it lands.

The **Realtime** screen is the globe. It shows who is on your site right now, where they are, and every pageview, event and sale as it lands. A visitor counts as online for 5 minutes after their last event.

Open it from the sidebar under **Analytics**, **Realtime**, press `g` then `r`, or select the **N online** pill in the top bar. Realtime ignores the date range and filters: it always shows the present.

## What the screen shows

The globe fills the page. Three things float on it.

### Who is here

A card at the top left names the site and how many visitors are on its domain right now. The same number is in the pill in the top bar. Under it, one of three lists, for the people online:

| Tab | What it shows |
| - | - |
| **Referrers** | Where they came from |
| **Countries** | Which country they are in |
| **Devices** | Desktop, mobile or tablet |

### The globe

Each visitor online now is a dot at their approximate location. Visitors who have paid are drawn in the customer color. New pageviews, events and payments ripple out from where they happened, and a visitor who pays turns to the customer color as their payment lands. Only activity after you open the page ripples.

* Hover or focus a row in the event list and the globe turns to that visitor.
* Select a dot to open that visitor's [peek](#visitor-peek).

| Control | What it does |
| - | - |
| **Sale alerts** | The bell at the top right. Sound and system notifications for a sale, on this browser. |
| **Auto-rotate the globe** | Turns slow rotation on or off. On by default. |
| **Full screen** | Fills the screen with the same globe. Shown only when your browser allows full screen. Press `Esc` to leave. |

Today's sales, and whether this half hour is busier than yesterday, live on [Overview](https://docs.crispstats.com/dashboard/overview.md) and [Revenue](https://docs.crispstats.com/revenue/overview.md).

### Events

The feed lists the latest activity as sentences, newest first, and keeps up to 100 rows: who, from where, what they did, which source brought them, and how long ago.

| Feed filter | Shows |
| - | - |
| **All** | Pageviews, custom events and payments |
| **Views** | Each page someone opens. A visit's first pageview reads **Landed on**. |
| **Events** | Custom events, with their names |
| **Payments** | Sales and refunds |

A payment is its own row, named by what it was, with the amount, the product and the provider's logo:

| Row | Meaning |
| - | - |
| **New customer** | The first payment of a new subscription. |
| **Renewal** | A subscription renewing. |
| **One-time purchase** | A payment that is not a subscription. |
| **Payment** | A payment sent with `crispstats.revenue`, whose kind is not known. |
| **Refund** | Money returned, shown with a minus sign and never counted as a sale. |

A sale that arrives while the page is open briefly highlights its row. Select **Pause** to freeze the feed; the rest of the screen stays live, and **Resume, N new** shows how much arrived since.

Every payment a provider reports appears in the feed, also when the customer is no longer on the site. When CrispStats is still following the paying visitor (within 30 minutes of their last activity), the row shows where they are and the source that brought them; otherwise it shows the customer's generated name and the product only.

### Powered by

A pill at the bottom right links to CrispStats. It stays out of the way of the globe.

### Visitor peek

Select a feed row or a globe dot to open the peek without leaving the screen. It shows:

* The visitor's generated name, city and country, and whether they are **On the site now** or have **Left the site**.
* **Current page** (or **Last page** after they leave), **Source** and **Device**, with browser and operating system.
* **Session length**, **Pageviews** and **Revenue** for the current visit, while that is known.
* **View profile**, which opens the visitor's [profile and journey](https://docs.crispstats.com/dashboard/visitors.md).

Press `Esc` or select the close button to dismiss the peek.

## Sale alerts

While the dashboard is open, on any page, every sale shows a card at the bottom of the screen with the buyer's country flag, what it was and the amount, such as **New customer · now** over **$72 from Germany, via Google**. Select the card to open the payment. Several sales close together are counted in one card (**3 sales**, **$88**) instead of stacking. A refund shows a quiet card without celebration.

Select the bell at the top right of the globe to change, on this browser:

| Option | What it does |
| - | - |
| **Play a sound** | On unless you turn it off. A cash-register sound when a sale lands, also while the tab is in the background. Never for a refund. |
| **System notifications** | A notification from your operating system when a sale lands while the tab is in the background. Your browser asks for permission when you turn this on, not before. |

The choices are remembered per browser. Browsers only allow sound after you have clicked or typed in the tab once since it was opened, so a sale before that is shown but not heard. Your system's focus or do-not-disturb settings still apply to notifications.

## How presence works

* **Online for 5 minutes.** A visitor is online from their first event until 5 minutes after their last one. When that lapses, they drop off the globe and the count.
* **Sessions end after 30 minutes.** A session ends after 30 minutes without activity, or when the visitor comes back through a different campaign or referrer.
* **Location is approximate.** Location comes from the network edge that received the request. Coordinates are rounded to 0.1 degree before they are shown or stored, which is roughly 11 km north to south. Visitors without coordinates count as online but have no dot.
* **No personal data.** The event list and the globe use the same anonymous visitor ids and generated names as the rest of CrispStats. Customer e-mail addresses are never sent to the live screen. See [cookieless tracking](https://docs.crispstats.com/privacy/cookieless-tracking.md).

## Connection states

The screen holds a live connection to the CrispStats collector while the page is open. It lets go a little after the tab is hidden, unless system notifications are on, and reconnects on its own.

| State | What you see |
| - | - |
| Connecting | Placeholders for the count and the lists. The globe is a quiet disc until it is ready. |
| Live, nobody online | **0 visitors** on the domain, and in Events **Nobody is here right now**. |
| No events ever | **No events from this site yet.**, with a link to the tracking code. See the [quickstart](https://docs.crispstats.com/quickstart.md). |
| Reconnecting | The last visitors stay on the globe, and the count stays. |
| Offline | **Live updates are offline.** Select **Reload** if it stays offline. |

Only people who can open the site in the dashboard can watch it live. Each connection uses a short-lived token issued for that site.

## Next steps

> [card] [Revenue attribution](https://docs.crispstats.com/revenue/overview.md)
>
> See which sources bring paying customers.

> [card] [Visitor profiles](https://docs.crispstats.com/dashboard/visitors.md)
>
> Open a visitor and follow every session step by step.

> [card] [Live visitor badge](https://docs.crispstats.com/share/live-visitor-badge.md)
>
> Show the number of people online on your own site.


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