Theme

Start for free
DocsStripe Payment Links

03 · Revenue

Link Stripe Payment Link sales to their visits

A Payment Link needs no code of yours: the snippet tags it with the visitor's id before the click.

01The snippet tags your links

On every page it runs on, the snippet adds the visitor's id to each buy.stripe.com link as client_reference_id, which Stripe copies onto the Checkout Session. A link that already has a client_reference_id of your own is left alone. So put the snippet on every page with a Payment Link; there's nothing else to add:

HTML
<script defer data-site="k3xq2mfa7twp" src="https://t.tallybyoutpost.com/script.js"></script>

In consent mode, links are tagged once the visitor has given consent, and the tag follows if they withdraw it.

02A second way in: the redirect

In each link's settings, under what happens after payment, choose Don't show confirmation page and redirect to your site with ?session_id={CHECKOUT_SESSION_ID}. The snippet on that page reports the session, which links the payment even when the link wasn't tagged:

Success URL
https://yoursite.com/thanks?session_id={CHECKOUT_SESSION_ID}

03On a cookieless site

There's no visitor id to add to a link, so the redirect is how a Payment Link sale finds its visit: it ties the payment to that day's visit.

04Check it worked

05What isn't tagged

Something missing, or not what you see? Write to support@tallybyoutpost.com and say which page.