Skip to main content
Attribution is only exact when the purchase carries the visitor id. The pixel exposes the current visitor id as window.trk.vid — pass it into your checkout and TrackRev joins the resulting charge to the click with certainty. Without it, TrackRev falls back to matching on email, which is a good safety net but not exact.
Read window.trk.vid in the browser at the moment you start checkout. On the server, the same value is available as the vid cookie.

By processor

Checkout Session — set client_reference_id:
Payment Links / Pricing Table — append the id or set the attribute:
You can also set metadata.vid on the PaymentIntent as an alternative.

Verify it’s working

After wiring this up, go to Integrations → Verify your checkout setup → Check attribution setup. TrackRev inspects recent checkouts and confirms the vid is present and matching. See Connect Stripe → Verify your setup for what each result means.
The pixel must be running on the page where checkout starts so window.trk.vid is defined there. If the verifier says “vid unmatched”, that’s the usual cause.