LemonSqueezy Checkout Links
Attribute a hosted LemonSqueezy checkout or standard overlay link automatically.
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
Use the original share URL containing /checkout/buy/. Do not copy the single-use cart URL created after checkout opens.
<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:
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
The same automatic behavior works when a normal Checkout Link is used as a Lemon.js overlay button:
<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.
No manual webhook setup is needed. Connecting LemonSqueezy in Website settings creates the signed order, subscription, and refund webhook.