Conversions
Overview
Understand how Refport connects clicks, leads, sales, refunds, and commissions.
Conversions are the events Refport uses to turn referral traffic into attributed revenue and partner commissions.
Funnel
| Stage | Source | Result |
|---|---|---|
| Click | Refport short link and browser tracker | Stores refp_id for attribution |
| Lead | Auth flow, form, or server event | Connects a referred visitor to a customer |
| Sale | Stripe, Shopify, or server event | Attributes revenue and creates commission context |
| Refund | Payment integration or manual adjustment | Voids or adjusts commission when needed |
Recommended setup
- Install browser tracking.
- Add lead tracking or the Better Auth plugin.
- Connect Stripe, connect Shopify, or call manual sale tracking.
- Add the Embedded Portal so partners can see the results.
Leads
Lead events are useful when partner rewards depend on sign-ups, qualified accounts, demos, or free trials. They also create customer context that later sale events can reuse.
Better Auth
Track sign-ups automatically with the Better Auth plugin
Manual lead tracking
Call track.lead() from any server-side auth flow
Sales
Sale events represent paid conversion. They should only be recorded after your server or payment processor confirms payment.