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

# Attribute revenue with LemonSqueezy Payment Links

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

# Attribute revenue with LemonSqueezy Payment Links

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

In your [LemonSqueezy Dashboard](https://app.lemonsqueezy.com), select a product and it will open a overlay with the product details.

For **Confirmation Modal** and **Email Receipt**, update the Button Link to redirect customers to your website and add `?order_id=[order_id]` to the URL.

![LemonSqueezy Payment Links](/blog-payment-link-attribution-lemonsqueezy.png)

DataFast will automatically look for the `order_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.).
