How revenue attribution works
How SuprAnalytics ties each payment to the visitor who made it and their earlier visits, first touch versus last touch, and payments without a visitor id.
SuprAnalytics shows which channels, campaigns, pages and countries bring paying customers, not just visitors. It does this by connecting each payment to the visitor who made it, and that visitor to every visit they made before paying.
How it works
- The script gives every visitor an id
It's kept in a first-party cookie,
supr_visitor_id, for a year, and is also available aswindow.supr.visitorId(). - You pass the id to your checkout
As metadata on the checkout (or nothing at all for Polar checkout links: the script adds it). Each provider's page shows how.
- Your payment provider tells SuprAnalytics about the payment
Through a webhook (Polar, Stripe, Lemon Squeezy) or the Payment API. SuprAnalytics reads the id back and credits the payment to that visitor's visits.
First touch and last touch
Each payment remembers the visitor's first visit ever and their last visit before paying. Choose which one gets the credit in Settings → Revenue → Attribution model:
- Last touch: the visit that converted. Good for "what closes the sale?".
- First touch: the visit that brought them in. Good for "what finds new customers?".
Last touch counts direct visits, and switching re-credits past payments too. For a longer explanation with worked examples, read first-touch vs last-touch attribution.
Payments without a visitor id
They still count in your revenue. SuprAnalytics then looks for the visitor another way: the same customer id on an earlier payment, or a visitor with the same email (from identify or an earlier payment). If nothing matches, the payment is revenue without a source.
Pick your provider
AI agent or LLM? Read this page as Markdown