Source: https://datafa.st/docs/stripe-payment-links
Markdown source: https://datafa.st/docs/stripe-payment-links.md
Description: Set up revenue attribution with Stripe Payment Links. No-code solution that automatically tracks payments by redirecting to your website.

# Attribute revenue with Stripe Payment Links

← [Revenue attribution guide](/docs/revenue-attribution-guide)

# Attribute revenue with Stripe Payment Links

> Make sure you've [connected Stripe account](/docs/connect-payment-provider) first.

In your [Stripe Payment Links](https://dashboard.stripe.com/payment-links/), select a product and go to the "After Payment" tab.

For "Confirmation page", choose to redirect customers to your website and add `?session_id={CHECKOUT_SESSION_ID}` to the URL.

![Stripe Payment Links](/blog-payment-link-attribution.jpg)

DataFast will automatically look for the `session_id` in the URL and track the payment.

## Important notes

- Duplicate payment events are ignored so you don't need to worry about multiple redirects
- Works best when customers complete the purchase journey on the same device/browser

> After receiving a successful payment, you should see revenue data in your dashboard (referrer, country, browser, etc.).
