Revenue attribution
Connect Stripe: setup guide
Add a Stripe webhook for checkout sessions, invoices and refunds, paste its signing secret, and see how payments, renewals and refunds are counted.
This is the setup. What attribution gives you with Stripe, how Checkout Sessions and Payment Links compare, and what is and isn't counted is on the Stripe revenue attribution page.
- Add a webhook endpoint in Stripe
In the Stripe Dashboard, Developers → Webhooks → Add endpoint, with this URL:
https://supranalytics.app/api/webhooks/stripe/YOUR_WEBSITE_ID
Select
checkout.session.completed,checkout.session.async_payment_succeeded,invoice.paidandcharge.refunded. - Paste the signing secret in SuprAnalytics
Copy the endpoint's signing secret (
whsec_…) into Settings → Revenue with Stripe selected. - Pass the visitor id
With Checkout Sessions as metadata, or with Payment Links as
client_reference_id.
What SuprAnalytics counts
- A paid Checkout Session counts once, for its
amount_total. Unpaid sessions are skipped untilasync_payment_succeeded. - A subscription's first invoice is merged with its checkout, so it isn't counted twice. Later invoices (
subscription_cycle) count as renewals. - A full refund (
charge.refunded) marks the payment refunded. Partial refunds are ignored. - Amounts are converted from Stripe's smallest currency unit (cents) for you.
AI agent or LLM? Read this page as Markdown