Stripe revenue by traffic source, from one restricted key

Stripe does not report which traffic source brought a sale, so to see Stripe revenue by traffic source you need a tool that ties each checkout to the visit before it. Simplytics has done this since November 2026: paste a Stripe restricted key, and each new sale is credited to its source, campaign, country, device and landing page, with no cookies.

Why doesn't Stripe show revenue by traffic source?

Stripe sees the checkout, not the page the buyer read before it. Its Payment Links analytics show "views, sales, and revenue from a given payment link", can lag "up to 18 hours", and "aren't supported for links that include recurring prices", per Stripe's post-payment docs as of November 2026. That is revenue per link, not per source.

A Payment Link does accept utm_source and the other UTM parameters, but Stripe only passes them on to your redirect URL, if the link redirects; it does not chart them (URL parameters). To join a sale to a visit, something has to carry a reference across the checkout. Two work for a Payment Link: client_reference_id, up to 200 letters, digits, dashes or underscores as of November 2026, returned with the completed Checkout Session, and a redirect URL that includes {CHECKOUT_SESSION_ID}.

How do you connect Stripe to Simplytics?

  1. On your site's analytics page, press Revenue in the sidebar.
  2. In Stripe, open API keys and choose Create restricted key.
  3. Set Events and Invoices to Read, and Webhook Endpoints to Write. Leave the rest at None.
  4. Paste the key and press Connect.

Sales are counted from now on, as visitors buy.

With Webhook Endpoints: Write they arrive within seconds; without it, Simplytics checks every 10 minutes. A secret key (sk_) is refused, because it can do anything in your account.

Once Stripe is connected, your pages load a 1.0 KB add-on with the tracking script. Payment Links work as they are: when a visitor clicks a buy.stripe.com link, the add-on gives it a random reference as client_reference_id, unless the link has one. Buyers who come back count too: set the link's After payment redirect to a page of yours ending in ?session_id={CHECKOUT_SESSION_ID}.

For Checkout Sessions your server creates, send simplytics('ref') from the browser and pass it on:

const session = await stripe.checkout.sessions.create({
  // ...your line items, mode and URLs
  client_reference_id: req.body.ref || undefined,
});

The revenue docs have the browser half, and the same steps for Lemon Squeezy, Paddle, Polar, Dodo Payments, Creem, Gumroad and Shopify.

What does the Revenue card show?

Four tiles: Revenue, Net, Payments and Refunds, with new sales and renewals split underneath and a daily chart. Below them, the Revenue by card has five tabs: Sources, Campaigns, Countries, Devices and Pages (landing pages).

A sale is credited to the buyer's first visit that day. Renewals of a subscription bought on your site count in the totals, never by source.

The Simplytics Revenue card over 30 days: Revenue, Net, Payments and Refunds tiles, a daily revenue chart, and new revenue by source led by google.com, chatgpt.com and github.com
Thirty days of Stripe sales, with each new one credited to the source that sent the buyer.

Only this site's sales show. One Stripe account often runs several businesses, so a payment no visit names never appears, and nothing from before you connected is imported.

Stripe Checkout and Payment Links are covered; payments through the Payment Element, subscriptions made with Stripe's API and Stripe Invoicing carry no visit and count nothing. A visit that began at the checkout has only its country and device.

AI assistants show up here like any other source, so the ChatGPT and Perplexity referrals you already count get a dollar figure. To compare this month with last, use the previous-period view; to read the numbers from an AI assistant, the MCP server has a get_revenue tool.

What does Simplytics keep about buyers?

Daily totals, and new revenue by source, campaign, country, device and landing page. For 60 days, a one-way code per payment, so a sale is never counted twice and a refund comes off the right source.

Never the buyer's name, email or card. Your key is stored encrypted. If your dashboard is public, visitors see revenue too, unless you untick Revenue in What visitors see.

How do other analytics tools get Stripe revenue by source?

Tool Stripe connection How a sale meets its visit Price
Simplytics Yes, restricted key Add-on tags the checkout; no cookies $12/year or $2/month, every plan
Plausible No; your code sends revenue A custom event with a revenue amount Business plan, $19/month
Umami Cloud Yes, hourly import umami.identify plus umami_distinct_id in Stripe metadata Pro plan, $20/month
DataFast Yes Default script uses cookies Plans from $9/month (10k events)
Google Analytics 4 No connector A purchase event with transaction_id, from gtag or the Measurement Protocol Free

Sources as of November 25, 2026: Plausible's revenue tracking docs ("Revenue tracking is a Business plan feature") and pricing at 10,000 pageviews; Umami's payment providers docs and pricing; DataFast's home page; Google's purchase event guide and Measurement Protocol docs. Simplytics costs less than any paid row, with unlimited sites and pageviews (pricing).

When another tool fits better

  • You take payments with the Payment Element or Stripe Invoicing. Those carry no visit; send a purchase event from your own code to GA4 or Plausible, or tag the charge for Umami's import, instead.
  • You want one visitor's journey over months. DataFast's default script recognises returning visitors with cookies, and Umami matches a payment to the visitor's latest visit within 90 days. Simplytics credits each sale to that day's first visit. See Simplytics vs DataFast.
  • You want renewals broken down by source. Simplytics counts renewals in the totals only.

Last verified: 2026-11-25.

← All posts