Skip to main content
This guide wires the whole loop together for a Stripe-powered SaaS: tracking links, the pixel, a read-only Stripe connection, and the one line at checkout that makes attribution exact. Budget about 15 minutes.
1

Create a tracking link per channel

Go to Campaigns → New campaign, set your destination (e.g. your pricing page), and tick the channels you’ll share it on. TrackRev mints one link per channel with UTMs baked in. Full details: Create links.
2

Install the pixel on your site and app

Add the snippet to the <head> of every page — marketing site and app:
Then click Check pixel on the Integrations tab. See Install the pixel.
3

Identify users when you know them

Call identify() on sign-up or login so an email is tied to the visitor (this is the fallback that catches sales without a checkout reference):
4

Connect Stripe with a read-only key

On Integrations → Connect your revenue provider, choose Stripe and use Quick connect to create a restricted key with the pre-selected read scopes (include rak_webhook_write for instant sync). Paste the rk_… key. See Connect Stripe.
5

Pass the visitor id at checkout

Set the visitor id on the Checkout Session so the sale joins to the click exactly:
More options (Payment Links, Pricing Table) in Pass the visitor id to checkout.
6

Verify the checkout wiring

On Integrations → Verify your checkout setup, click Check attribution setup. Aim for an OK — it confirms a vid is present and matches a tracked visitor.
7

Make a test sale and read the report

Click one of your links, complete a (test-mode) purchase passing the vid, and wait for the sync (hourly, or seconds with the webhook). The order appears under Orders, and Channels credits it to the right channel.
8

Choose your model and window

On Attribution, pick last-touch, first-touch or linear and set your window (default 30 days). See Attribution models.
You now have every Stripe sale credited to the channel that earned it — and lifetime value by channel building as subscriptions renew.

Troubleshooting

The vid isn’t reaching Stripe. Confirm the pixel is on the page checkout starts from, and that you pass client_reference_id: window.trk.vid. Email matching only works if you also called identify(email).
Check the Stripe key is valid (the verifier reports error if it’s revoked or missing a scope), and click Sync now. First sync looks back 30 days.
Revenue attribution is a paid feature — upgrade from the Free tier to reveal it. See Plans & billing.