# LemonSqueezy Checkout Links (https://talivia.com/docs/revenue-guides/lemonsqueezy/checkout-links)



Use this flow when a customer clicks a reusable LemonSqueezy Checkout Link on a page where the Talivia tracker is installed.

## Add the link to your site [#add-the-link-to-your-site]

Use the original share URL containing `/checkout/buy/`. Do not copy the single-use cart URL created after checkout opens.

```html title="Hosted LemonSqueezy checkout"
<a href="https://YOUR_STORE.lemonsqueezy.com/checkout/buy/VARIANT_ID">
  Buy now
</a>
```

Talivia adds the current session without removing discount, quantity, or other existing query parameters:

```text
checkout[custom][talivia_session_id]=s_...
```

LemonSqueezy returns this value as `meta.custom_data.talivia_session_id` in order and subscription webhook events. Talivia uses it to connect the revenue to the originating visit.

## Checkout overlay [#checkout-overlay]

The same automatic behavior works when a normal Checkout Link is used as a Lemon.js overlay button:

```html title="Lemon.js overlay link"
<a
  class="lemonsqueezy-button"
  href="https://YOUR_STORE.lemonsqueezy.com/checkout/buy/VARIANT_ID"
>
  Buy now
</a>
```

The link must still be a standard anchor on the tracked page. If your application creates a custom checkout or calls `LemonSqueezy.Url.Open()` with a URL generated elsewhere, continue with [Checkout API](https://talivia.com/docs/revenue-guides/lemonsqueezy/checkout-api).

No manual webhook setup is needed. Connecting LemonSqueezy in Website settings creates the signed order, subscription, and refund webhook.
