How a payment finds its visit
When a payment lands, Clickbase matches it to a visitor and, through that visitor’s first session, to the campaign and source that drove them in. That attribution flows into the Revenue page and into your breakdowns, so filtering by a source or a UTM campaign shows the money it produced alongside the traffic. Attribution is anchored to the visit that brought the visitor in, so revenue is credited to the acquisition channel — the referrer, UTM, or source of the session — rather than to whatever page the payment happened on.Unattributed revenue
Some payments can’t be matched to a visit. When that happens the revenue still counts toward your totals — it just lands under Unattributed instead of being credited to a channel. Common causes:- The purchase came from a server-side flow (like a Stripe Checkout Session) that was never linked back to the browser visit.
- The visitor was never tracked (ad blocker, tracking disabled, a channel Clickbase never saw).
Bridging a server-side checkout
A Stripe Checkout Session is created on your server, so on its own it has no idea which browser visit it belongs to. You close that gap by reading the visitor id in the browser and attaching it (and optionally the session id) to the session.getVisitorId() returns null before the tracker has loaded, and for a visitor with no stored id — in which case the payment simply lands under Unattributed rather than failing. getSessionId() is optional companion metadata; when present it is stored alongside the visitor. See Track revenue for the end-to-end flow.

