Skip to main content
CrispStats reports nine headline metrics: visitors, sessions, pageviews, views per visit, bounce rate, visit duration, revenue, conversion rate and revenue per visitor. Each one is calculated the same way in the dashboard, the REST API, the MCP server and Ask AI. This page gives the exact definition of each metric, what the columns in breakdown tables mean, and the rules that sort every visit into a traffic channel such as organic search, social or AI assistants.

Headline metrics

The overview shows six of these metrics as tiles above the chart: Visitors, Revenue, Conversion rate, Revenue per visitor, Bounce rate and Visit duration. A public dashboard with revenue hidden shows Visitors, Sessions, Pageviews, Views per visit, Bounce rate and Visit duration instead. The API’s GET /sites/{siteId}/stats returns all nine. In the stats response, each metric sits in the metrics object with its value, its previous value and its change (the last two are null when comparison is off). In API responses, money is an integer in minor units (cents) of the site’s currency, rates are numbers from 0 to 1, and durations are seconds. A ratio whose denominator is zero is reported as 0.

Counting visitors

A visitor is an anonymous id. In the default privacy mode the id rotates at the start of each day in the site’s timezone, the same days your reports use, so one browser is one visitor per day. Over a longer period, visitors are the sum of each day’s unique visitors: someone who visits on three different days counts as three visitors in a 30-day report. With persistent visitors turned on, the id lasts across days and a period total counts each id once. On the chart, visitors are unique within each bucket. The same visitor in two hourly buckets is counted in both, so adding up the points of an hourly chart gives a larger number than the period total. Use the tile, or the API’s stats endpoint, for the total. How CrispStats works explains how the id is made.

Sessions and pageviews

A session ends after 30 minutes without an event, or when the visitor comes back through a different referrer or campaign. See sessions for the full rule. The script records a pageview on page load, on each single-page navigation through the History API, and on hashchange when the script has data-hash. The same URL twice in a row counts once. A page restored from the browser’s back/forward cache counts as a new pageview.

Bounce rate

A session bounces when it has at most one pageview and no custom events. Custom events include the ones the optional modules send (Outbound link, File download and 404), so a visitor who views one page and clicks an outbound link does not bounce. Engagement pings, web vitals, JavaScript errors, identify calls and crispstats.revenue() events do not count as interaction.

Visit duration

A session’s duration is the time from its first event to its last event or engagement ping. The script sends a ping when the page is hidden or left, and before each single-page navigation, so a visit to a single page still gets a duration when the visitor leaves. Visit duration is the average over all sessions, bounced ones included.

Revenue, conversions and revenue per visitor

Revenue comes from payments: payments read from the providers you connect with a key (Stripe, Polar, Paddle, Dodo Payments, Creem, Whop, Razorpay, Lemon Squeezy, Shopify, RevenueCat, Superwall, App Store and Shopify App Store), and revenue sent with crispstats.revenue() or the payment API. Test-mode payments are kept out of revenue.
  • Revenue is the gross sum of payments whose payment time falls in the period. Refunds are left out of this figure and reported separately on the revenue screen.
  • A conversion is a customer’s first payment, refunds aside, and it counts only when that payment is a one-time purchase or a new subscription. A later payment from the same customer never counts, even when their first payment is outside the period, so renewals are never conversions. Customers are recognised by their hashed email address, then by user id, then by visitor id.
  • Conversion rate is conversions divided by visitors, capped at 100%.
  • Revenue per visitor is revenue divided by visitors.

Breakdown tables

Each row in a breakdown, such as a source, a page or a country, has its own set of numbers. The details view of a card and the API’s GET /sites/{siteId}/breakdown/{dimension} return them. Revenue and conversions in a breakdown are credited by first touch: to the source, channel, campaign and landing page of the customer’s first visit. Location, browser, operating system and device come from the visit that paid, or from the customer’s last visit before the payment. Rows for page, exit page, event, hostname, UTM term, UTM content and language show no revenue, because payments do not carry those values. When you turn on comparison, every metric also gets the value for the previous period of the same length, or for the same dates a year earlier. See filters and comparison.

Traffic channels

CrispStats sorts every session into one channel, using the referrer and the UTM tags of the session’s first pageview. The rules run in this order, and the first match wins: utm_medium matching ignores case. A few details decide edge cases:
  • Your own hostname counts as direct. A referrer on the page’s own hostname or one of its subdomains is ignored (a leading www. does not matter), so navigation within one hostname is never a referral. The match only works downward: a link from blog.example.com to a page on example.com is direct, but a link from example.com to a page on blog.example.com is a referral from example.com.
  • utm_source has shorthands. When utm_source is missing, CrispStats reads ref, then source, then via from the landing URL. A link like https://example.com/?ref=newsletter gets the source newsletter.
  • Hostnames match subdomains. news.ycombinator.com and www.reddit.com match their entries, and google. matches every Google country domain, such as google.co.uk.

Source names

Next to the channel, each session gets a source name, shown in the Source tab of the Sources card. It is the friendly name when the referrer is a known AI assistant, search engine, social network or video site (Google, ChatGPT, Hacker News). Otherwise it is the utm_source value, then the referrer hostname without www., then Direct. The Referrer tab shows the referrer hostname itself, and the Campaign tab shows utm_campaign.

AI assistants

A visit is in the AI assistants channel when a person follows a link from one of these assistants. The AI tab of the Sources card and the AI traffic screen list them by name. Some assistants send no referrer but add a UTM tag instead. A visit also counts as AI traffic when utm_source is one of the hostnames above, such as chatgpt.com, or becomes one when .com is added, such as chatgpt or copilot. These are people who clicked a link. AI crawlers that fetch your pages for training or search are not visitors and never appear in these numbers. CrispStats counts them separately: see AI crawlers.

Try the rules

Enter a referrer and a landing URL to see the channel and source CrispStats would record. The widget runs the same rules as the collector, and treats the landing URL’s hostname as your own.

Learn more on crispstats.com

Next steps

How CrispStats works

The path of an event, and when it shows up in your reports.

Read the overview

Where each metric and breakdown lives in the dashboard.

AI traffic

Visitors, revenue and landing pages from AI assistants.
Last modified on November 25, 2026