Read analytics and usage

In this guide

Open Analytics in the console and select a period and, optionally, a product. Both dates are inclusive UTC dates. The default covers the last 30 days including today. Select up to 366 days. Daily series stop at the observation date. The console’s organization and test or live environment determine which records you see.

From payment to the Stripe balance

Gross sales including tax and the subscription portion use the buyer’s currency and payment date. Successful refunds use the same currency and their own dates. Country refers to the buyer at the sale, when known. Plan refers to the original sale. Changing a catalogue price leaves historical amounts intact.

Tax withheld, fees excluding withheld tax and net come from individual balance movements, each on its own date and in its settlement currency. Net already includes fees and withheld tax. A dispute that you win can have a debit in one period and a credit in another. Keep a separate total for each currency.

EUR example Gross sales Buyer refunds Tax withheld Fees Net on balance
30 April, payment and balance credit 120.00 0.00 20.00 3.00 97.00
2 May, partial refund and balance debit 0.00 60.00 −10.00 0.00 −50.00

In May the EUR 10 tax reversal offsets part of the EUR 60 returned to the buyer. This example assumes all movements were reconciled in the same currency and the original processing fees were retained.

Keyseal projects financial facts before clearing a processed Stripe notification. The receipt retains the event identifier, type, timestamps, status and error code for deduplication. Notifications for another publisher or an unsupported event also leave only a receipt. Unpaid Checkout notifications and invoices for one-time purchases leave only receipts. The paid Checkout notification establishes the sale. A permanent refusal, such as a missing invoice period or an open status on a dispute-closed notification, also leaves only a receipt. An invoice without an email can be retried once the matching Stripe customer exists in the publisher’s scope. An eligible failed or ignored event keeps encrypted, selected replay fields for up to 30 days from first receipt. A refund or dispute awaiting attribution can be retried with payment references and financial fields. The worker compacts historical receipts after their financial projections and clears expired replay inputs in batches. To retry an eligible failed event locally, run keyseal-admin --org acme --env test stripe replay evt_…. Add --force for an eligible ignored event. If another transaction changed the replay inputs, rerun the command to use their current version. A fresh signed delivery can retry a failed event after the local replay window closes.

Read coverage

A JSON null means unavailable. A numeric zero means an observed zero. A partial amount adds up the known movements. Beside that amount, an incomplete-order count tells you how many orders need further evidence. Refund coverage is specific to the sale currency. Tax, fee and net coverage applies to the entire group, even if a settlement currency is still unknown. An old cumulative refund without a reliable date affects coverage from payment through observation.

Keyseal retains imported Lemon Squeezy orders in the ls_orders history table with their dates, totals and currencies. The import report gives order counts by outcome in counts.orders. Financial analytics cover Stripe orders. Imported, free and manually issued licences and ready files count toward usage.

The worker revisits stored orders and events and reconciles movements attributable to the original Stripe account. Reports read from local storage. If a restricted key cannot read the necessary balance transactions, refunds, disputes or invoice payments, the affected figures can stay incomplete. The permissions needed to sell stay the same.

Monthly recurring revenue (MRR) uses the tax-exclusive monthly price of active subscriptions after known recurring discounts. It is measured at period end or the observation instant during the current period and rounded once per currency. When Stripe supplies only an item coupon ID, the worker needs read access to that coupon to calculate the rate. It checks the rate again when a temporary discount expires. An unknown historical status or rate counts as an incomplete subscription. Effective cancellations, scheduled cancellations, renewals and extensions of update access have separate counts.

Usage and export

Usage covers every product in the environment. Members cover the whole organization. Current gauges carry their observation time even when you select a past period. A missing daily gauge is unavailable. Authenticated management API calls and outgoing webhook attempts are unavailable before tracking began. Activations include successful reactivations.

Export CSV downloads aggregate financial data with the displayed filters. The metric, currency, unit and availability columns identify the measure, currency, unit and coverage (complete, partial, unavailable). Monetary values are in minor units. Unavailable figures have an empty value cell.

Members and API keys with the read scope can use the same reports through the API (GET /api/v1/analytics, /api/v1/analytics/export, /api/v1/usage), MCP (analytics_summary, analytics_export, usage_get) or the CLI.

keyseal analytics summary --from 2026-04-01 --to 2026-04-30 --json
keyseal analytics export --from 2026-05-01 --to 2026-05-31 > may.csv
keyseal usage --from 2026-05-01 --to 2026-05-31
All guides