Skip to main content

Documentation Index

Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Connect Lemon Squeezy

1

Generate an API key

Go to Lemon Squeezy Settings → API and create a new API key.
2

Add to Revlytics

In Settings → Revenue Tracking, select Lemon Squeezy and paste the key.
3

Connect

Click Connect to start syncing order and subscription data.

Automatic order detection

The tracking script detects Lemon Squeezy checkouts by looking for an order_id URL parameter when a customer returns to your site after purchase.

Checkout overlay setup

If you’re using Lemon Squeezy’s JavaScript checkout overlay:
<a
  href="https://yourstore.lemonsqueezy.com/checkout/buy/xxx"
  class="lemonsqueezy-button"
>
  Buy Now
</a>
<script src="https://assets.lemonsqueezy.com/lemon.js" defer></script>
After purchase, the overlay redirects to your thank-you page with the order_id parameter.

What’s tracked

DataSource
Order IDURL parameter
Order amountLemon Squeezy API
Product / variantLemon Squeezy API
Traffic sourceRevlytics session
Landing pageRevlytics session
For Lemon Squeezy payment links, set the redirect URL to include your domain:
https://yourstore.lemonsqueezy.com/checkout/buy/xxx?checkout[custom][redirect_url]=https://yoursite.com/success