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

# Verified revenue and sales widgets

> Show MRR, revenue or a sales count synced from Stripe, Paddle, Shopify, the App Store and the other connected providers, as a band, an exact figure or growth, with a public proof page that explains how it was counted.

Revenue widgets show money that CrispStats received from your payment provider, never a number typed in. A revenue widget shows your MRR or your revenue over a range; a sales widget shows how many sales you made. Each one links to a public proof page that names the providers and explains, in words, what was counted.

![A card headed MRR showing \$10k+, up 10% against 30 days ago, with the footer Synced from 3 providers and Verified by CrispStats](https://mintcdn.com/crispstats/E7Fpqdyq9pa1UkLm/images/widgets/revenue-card-light.png?fit=max\&auto=format\&n=E7Fpqdyq9pa1UkLm\&q=85\&s=6539623fa7e252cac41a524959018b21)

Verified revenue card

![A goal headed Road to \$25k MRR with the bar at 55%, the footer Synced from 3 providers and Verified by CrispStats](https://mintcdn.com/crispstats/E7Fpqdyq9pa1UkLm/images/widgets/mrr-goal-light.png?fit=max\&auto=format\&n=E7Fpqdyq9pa1UkLm\&q=85\&s=f3179a98fb657732a38d9d20b3adf3f3)

Road to MRR goal

![A pill reading \$10k+ MRR, verified, and the CrispStats mark](https://mintcdn.com/crispstats/E7Fpqdyq9pa1UkLm/images/widgets/revenue-pill-light.png?fit=max\&auto=format\&n=E7Fpqdyq9pa1UkLm\&q=85\&s=fb701ef5225bbbfbfe9143778d99acbc)

Verified revenue pill

![A pill reading 1,060 sales in the last 30 days, and the CrispStats mark](https://mintcdn.com/crispstats/E7Fpqdyq9pa1UkLm/images/widgets/sales-pill-light.png?fit=max\&auto=format\&n=E7Fpqdyq9pa1UkLm\&q=85\&s=afa27fc1da149b1efae59515f523e3e1)

Sales count

## Which payments count

A payment counts toward a revenue or sales widget when all of these are true:

* CrispStats read it from the provider's own API with the key you connected in **Settings**, **Revenue**. Every provider connected with a key is read this way: new payments as they arrive or on the provider's regular check, and past ones by [history import](https://docs.crispstats.com/revenue/history.md).
* The provider marked it live. Test-mode and sandbox payments never count.
* The provider is still connected. If you disconnect it, its payments stop counting, past ones included, and a widget left with no verified payment turns off.
* It is in the site's currency. Payments in other currencies are left out, and the proof page says so.

Payments that only arrived through a webhook you set up by hand on an older connection made without a key are not verified: a webhook is signed with a secret the site owner holds, so it cannot prove a payment happened. Connect that provider with a key to verify them. Payments sent through the [payment API](https://docs.crispstats.com/revenue/payment-api.md) never count either: they are reported by your own code. Refunds are subtracted from revenue and are not sales, so verified revenue is net of refunds. The [Revenue](https://docs.crispstats.com/revenue/overview.md) screen shows gross revenue from every connection with refunds beside it, so the two can differ.

> [!NOTE]
>
> Payments stored before you connected a key count once you connect the provider with a live key; the history import reads them back. Creem and RevenueCat are the exception: their key connections store payments under other ids, so the import starts after the newest payment already stored, and older payments from a connection made by hand stay unverified. If a key was missing a permission when you connected, add it and run **Import again**. Each provider's page lists the permissions its key needs.

You cannot create a revenue or sales widget before a provider is connected with a key. The widget screen says so and links to **Revenue** settings.

## MRR or revenue

| Metric | What it is |
| - | - |
| MRR | Each subscriber's latest subscription payment from the last 31 days, added up. It always means now, and its change compares with 30 days ago. |
| Revenue | Verified payments, after refunds, over the range you choose: the last 24 hours, 7, 30 or 90 days, 12 months or all time. Payments are kept forever on every plan, so all time is all time. |

MRR here is the same figure as on the [Revenue](https://docs.crispstats.com/revenue/overview.md) screen, restricted to verified payments. A yearly plan paid in the last 31 days counts in full for that month, so an annual renewal makes MRR jump and fall back a month later.

## How much it shows

**Display** decides how precise the public figure is. The default is a band.

| Display | Pill | Card figure |
| - | - | - |
| Band | `$10k+ MRR · verified by Stripe` | `$10k+` |
| Exact | `$12,480 MRR · verified by Stripe` | `$12,480` |
| Growth | `MRR up 18% in 30 days · verified` | `+18%` |
| Verified only | `Revenue verified by Stripe` | `Verified` |

A pill names the providers when its size has room, then counts them (`verified by 3 providers`), then says `verified` alone; screen readers always hear every provider. The card names them in its footer: `Synced from Stripe`.

A band is the largest of 1, 2.5 or 5 times a power of ten that your figure has reached: $12,480 shows as `$10k+`, $26,000 as `$25k+` and $999 as `$500+`. The real figure is at or above the band, and the proof page says so.

Floors keep a small business from showing more than it means to. Until 3 verified payments exist, every display shows **Verified only**. A band also needs at least 100 in the main unit of your currency, and growth needs a figure 30 days earlier (or in the period before) to compare with; until then they show **Verified only** too. With one provider the line names it (`Stripe`); with two it names both; with more it counts them (`3 providers`).

Badges, which anyone can copy and keep, show a band or growth only: an exact figure is refused for the badge layout.

**Goal** turns the widget into a progress bar toward an amount you set, such as `Road to $10k MRR` with `63%`. The percentage reveals your approximate figure, and the consent sheet says so.

## Consent

Publishing money is a decision, so revenue and sales widgets ask for it. Before the first save, **This will be public** lists, with today's values, what anyone who sees the widget can read: the figure in its display, the providers and the date of the first verified payment. Tick **I want to publish this** and select **Publish revenue**.

The sheet opens again whenever a change shows more than before: band to exact, band to growth, verified only to any figure, a new goal, or a switch between MRR and revenue. Showing less, such as exact to band, needs no new consent. Copies, screenshots and caches can outlive a widget you delete.

Revenue and sales widgets always carry **Verified by CrispStats**, on every plan, because the credit is the link to the proof.

## The proof page

Every revenue and sales widget links to its own page at `https://crispstats.com/verified/<token>`. It shows:

* the site's name and domain, and the figure in the widget's display, never more precise than the widget;
* the providers, with their logos, and the date of the first verified payment;
* when the figure was computed, in UTC;
* **How this is verified**: what "verified" means and the method in words, for example "Payments synced from Stripe by webhook or import. Refunds are subtracted. Only USD payments count.", plus the MRR definition for MRR widgets;
* **What it does not prove**: it is not an audit, payments outside the connected providers are not in it, and CrispStats does not check who owns the connected payment account.

A copy of the widget on another site still links to the page of the site it belongs to. Proof pages are not indexed by search engines in this version.

## Sales

A sales widget counts verified sales over the last 7, 30 or 90 days, 12 months or all time: `38 sales in the last 30 days`. Each payment counts once, and refunds are not sales. The card adds the change against the period before and, with **Latest sale** on, `Latest sale today`, `this week` or `this month` (nothing when the latest sale is older). It never shows amounts, products, customers or where a sale came from. With no sale in the range, the widget hides.

## How fresh it is

CrispStats recomputes revenue and sales at most every 900 seconds, and the script refreshes the widget every 10 minutes while the tab is visible. A new payment can take up to about 15 minutes to reach a widget.

## Add it

1. Connect a payment provider in **Settings**, **Revenue** if you have not.
2. Open **Settings**, **Sharing and widgets** and pick **Verified revenue card**, **Verified revenue pill**, **Road to MRR goal** or **Sales count**.
3. Choose the metric and the display, select **Create widget** and confirm in **This will be public**.
4. Copy the code. A README image links to the proof page:

```html wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
<a href="https://crispstats.com/verified/cs_wd_7Hq2Lx9PzK4mVt8RbN3cW1yD"><picture><source media="(prefers-color-scheme: dark)"><img alt="Verified MRR for quillbook.com" src="https://in.crispstats.com/w/v1/i/cs_wd_7Hq2Lx9PzK4mVt8RbN3cW1yD.svg?theme=light" width="320" height="176"></picture></a>
```

Your own code carries your widget's token instead of `cs_wd_7Hq2Lx9PzK4mVt8RbN3cW1yD`. Other forms are on [Embed a widget](https://docs.crispstats.com/share/widgets/embed.md).

## Next steps

> [card] [Revenue attribution](https://docs.crispstats.com/revenue/overview.md)
>
> How payments are matched to the visits that led to them.

> [card] [Import past payments](https://docs.crispstats.com/revenue/history.md)
>
> Bring in your provider's history so all time is complete.

> [card] [Embed a widget](https://docs.crispstats.com/share/widgets/embed.md)
>
> Script, iframe, README, Notion, shields.io and React.


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