# Stripe revenue analytics

> Connect Stripe with a read-only key and see MRR, ARR, churn and every movement beside your traffic, with each subscription credited to the source that brought its customer.

Source: https://mettr.app/integrations/stripe

## Connect with a read-only key

In Stripe, make a **restricted key** with read access to subscriptions, invoices, charges, refunds and products, and paste it under the site's **Revenue** settings. mettr refuses a full secret key: it only ever needs to read, so it never holds a key that could write. The key is tried before it is kept, encrypted at rest and never shown again.

For changes as they happen, add a webhook endpoint at the address mettr shows. Each delivery is checked by its signature before anything in it is read.

## What you see

- **MRR and ARR**, with the range's change.
- **Subscribers**, **revenue per subscriber** and **churn**.
- **Movements**: new, expansion, contraction, churn and reactivation, by day.
- **MRR by source**: each subscription credited to the source of the visit its customer first came on.
- **Payments and refunds** in the live feed, as they happen.

## History from the first day

On connecting, every subscription's history is rebuilt from its billing cycles, the recurring price and not a trial's, so your MRR chart starts when your business did, not today. mettr reads again every night and on demand, and the webhook adds each change in between.

## MRR the way Stripe bills it

- Licensed prices times their quantities, less a discount that lasts; one applied once is left out.
- Metered usage is left out, since what will be used is not known ahead.
- Paused collection counts as nothing.
- Only active and past due subscriptions count: a trial counts once it pays.
- Each currency converted at the European Central Bank's rate of each day.

## Which sources bring paying customers

Put your user's id in the subscription's `metadata` (as `user_id`, or a key you choose) and send the same id with your events. mettr ties the subscription to that user's first visit, and its source: search, a newsletter, a campaign, a referral or direct.

## Priced by events

Revenue analytics often grow their price with your MRR. mettr's plans count events, whatever your revenue: Stripe comes with Pro at $19 a month. [See pricing](/pricing), or [read the setup guide](/docs/revenue#connect-stripe).
