Payment Links (opens in a new tab) are the fastest way to sell with Stripe: a buy.stripe.com address, no server. That is also why most analytics tools lose track of them. Reveata handles them in the browser instead.
What the script adds
| On your page | What the script does |
|---|---|
A link to https://buy.stripe.com/… |
Adds client_reference_id=dt_<visitorId>_<sessionId> when the link is clicked, middle clicks included |
<stripe-buy-button> |
Sets its client-reference-id attribute |
<stripe-pricing-table> |
Sets its client-reference-id attribute |
Stripe copies the reference onto the Checkout Session it creates. When the payment arrives, Reveata recognises the dt_ format and credits the payment to that visit. A reference you set yourself is never overwritten, and one in another format is ignored.
Setting it up
- Install the Reveata script on the pages that show your links.
- Connect Stripe in Settings → Payments (Stripe revenue analytics).
- That is all. There is no metadata to add and no server code.
This is why Payment Links suit site builders: on Webflow, Framer, Carrd or a plain HTML page you get attributed revenue with nothing but the snippet.
When the id cannot be added
- A link opened outside your site. A Payment Link in an email, a social bio, a QR code or a chat goes straight to Stripe and carries no visitor id.
- A redirect in JavaScript, such as
window.location = 'https://buy.stripe.com/…'. The script decorates clicked links, not addresses set in code. Append the reference yourself withreveata.visitorId()andreveata.sessionId(). - Cookieless mode. The cookieless script has no ids to add.
The payment still counts in revenue in all three cases. Reveata then tries the buyer's email against visitors you identified, and retries every hour for 90 days. You can also point the link's after-payment redirect at your own page with ?session_id={CHECKOUT_SESSION_ID}, and Reveata links the payment when the buyer lands there (thank-you page payments).
A tip for links you share elsewhere
Instead of sharing the raw Payment Link, share a page of your site with a tag such as ?ref=newsletter, and let the button on that page send people to Stripe. The visit gets the source, and the payment follows the visit.