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
- Stripe
- Paddle
- Polar / Creem / Dodo
- Lemon Squeezy
Checkout Session — set Payment Links / Pricing Table — append the id or set the attribute:You can also set
client_reference_id: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 thevid is present and matching. See
Connect Stripe → Verify your setup for
what each result means.

