---
title: "Track Stripe revenue without Google Analytics"
description: "Fire a Plausible or Umami revenue goal after Stripe Checkout in Next.js. Success page, webhook limit, and what cookieless tools miss."
canonical: https://datalighthouse.dev/guides/track-stripe-revenue-in-privacy-friendly-analytics
last-updated: 2026-11-28
---

# Track Stripe revenue without Google Analytics
Fire a Plausible or Umami revenue goal after Stripe Checkout in Next.js. Success page, webhook limit, and what cookieless tools miss.
### 1. Create the Plausible revenue goal

In Plausible site settings, add a custom event goal named Purchase and enable revenue tracking with a base currency. The ecommerce page says revenue tracking is a Business plan feature, and the goal name is case-sensitive. Community Edition leaves ecommerce revenue goals on Cloud.

### 2. Read the Checkout Session on the success page

Set success_url to a page on your domain with session_id={CHECKOUT_SESSION_ID}. On that App Router page, retrieve the Checkout Session and send revenue only when payment_status is paid, amount_total is greater than zero, and the session is less than an hour old.

### 3. Send Plausible revenue and Umami track data

Call plausible('Purchase', { revenue: { currency, amount }, props }). Amount is the major currency unit, and currency is an uppercase ISO 4217 code. Call umami.track('checkout-cart', { revenue, currency }) with revenue as a number. Do not send both calls for the same payment.

### 4. Post from the success-page request when the script cannot run

Plausible's Events API joins the visit when the POST carries that visitor's User-Agent and IP, the url is on the same site, and it arrives within 30 minutes. Forward those headers from the request that renders the thank-you page. Do not also fire the browser event.

### 5. Verify the Stripe webhook without using it as the visit

Stripe says you cannot fulfill only from the success page. Verify checkout.session.completed with stripe.webhooks.constructEvent. Plausible's Events API page says a payment-provider webhook cannot join the visit that led to the payment, and a data-center IP can be dropped while the API still returns HTTP 202.

### 6. Leave MRR, churn, and refunds in the billing data

A Purchase goal is the value of a payment during a site visit. It does not subtract a later refund, count a renewal, or compute MRR. Plausible says to use the billing tool for MRR, churn, and refunds.

## FAQ
### How do I track Stripe revenue in Plausible?

Add a custom event goal named Purchase and turn on revenue tracking. Plausible's ecommerce page says this is a Business plan feature. On the Next.js success page, retrieve the Checkout Session and call plausible('Purchase', { revenue: { currency, amount } }). Amount is the major unit, so 4900 USD cents become 49. Currency must be uppercase. The goal name is case-sensitive. Community Edition leaves ecommerce revenue goals on Cloud.

### How do I track a Stripe conversion in Umami?

Call umami.track('checkout-cart', { revenue: 49, currency: 'USD' }) after you have confirmed the Checkout Session is paid. The revenue doc, available since v2.14.0, requires those two data properties. Revenue in the tracker call is a number in the major unit. An unrecognized currency code defaults to USD. Umami Cloud can also import Stripe payments on a Pro or Business plan. That import is separate from track().

### Should the Stripe webhook send the analytics event?

Use the webhook for fulfillment. Stripe's fulfillment guide says a customer can pay and never reach your success page. Plausible's Events API page says a payment-provider webhook is not suitable for attribution: it has no visitor User-Agent or IP, so it cannot join the visit. The POST can start a Direct / None visit, or Plausible can drop it when the IP is a data center. The API still returns HTTP 202. Check the x-plausible-dropped response header.

### Why is cookieless revenue lower than the Stripe balance?

Plausible counts purchases completed during a visit, and it does not store a persistent id. A renewal, a refund, a charge on another device, and a checkout that lasts more than 30 minutes do not keep the original campaign. Visitors who block the script have no visit to join. Plausible's ecommerce page says to expect this revenue to be lower than Stripe.

### Do refunds and MRR show up in a Plausible or Umami goal?

A browser Purchase event does not subtract a later refund and does not compute MRR. Plausible says renewals and refunds happen in the billing system, and it says not to send them from webhooks. Umami Cloud's payment-provider import does pull payments and refunds about every hour on a Pro or Business plan. That report is still not a subscription MRR formula.

### When should I use a Stripe metrics dashboard instead?

Use Stripe data when you need MRR, churn, or LTV. A pageview goal cannot list active subscriptions. Data Lighthouse is a Next.js template you host. The license is $59 once. Optional Stripe cards show succeeded-charge revenue, MRR from active subscriptions, ARR as that MRR times 12, and revenue per visitor. Refunds are not subtracted. The overview does not compute churn. The sample dashboard is at https://datalighthouse.dev/demo and pricing is at https://datalighthouse.dev/pricing.


## Sources
- [Plausible: ecommerce revenue tracking](https://plausible.io/docs/ecommerce-revenue-tracking)
- [Plausible: Events API](https://plausible.io/docs/events-api)
- [Umami: tracker functions](https://docs.umami.is/docs/tracker-functions)
- [Umami: revenue](https://docs.umami.is/docs/revenue)
- [Umami Cloud: payment providers](https://docs.umami.is/docs/cloud/payment-providers)
- [Fathom: events](https://usefathom.com/docs/events/overview)
- [Fathom: ecommerce conversions](https://usefathom.com/docs/events/ecommerce-conversions)
- [Simple Analytics: events](https://docs.simpleanalytics.com/events)
- [Simple Analytics: metadata](https://docs.simpleanalytics.com/metadata)
- [Simple Analytics: server-side events](https://docs.simpleanalytics.com/events/server-side)
- [Stripe: fulfill Checkout orders](https://docs.stripe.com/checkout/fulfillment)
