Integration · Lemon Squeezy
Pay partners on the real Lemon Squeezy order.
TrackRev is SaaS affiliate software for indie hackers and small SaaS teams, with no limit on tracked revenue. Connect Lemon Squeezy with an API key, and TrackRev reads your orders through api.lemonsqueezy.com every hour. Each order is matched to the partner click by the buyer's email, which you hand to the pixel with identify().
The buyer's email bridges your site and Lemon Squeezy.
Lemon Squeezy's order API returns neither checkout custom data nor the discount code, so a visitor id passed at checkout cannot be read back. TrackRev joins on the buyer's email instead: call identify() once you know it, and the order is matched to the visitor and the partner click behind them. Click-accurate and promo-code attribution are not available for Lemon Squeezy.
- identify() stamps the email on the visitor and their link clicks
- Orders are matched by the buyer's email on the order
- A buyer who pays with a different email is not matched
| Newsletter | 4,212 | $8,420 |
| 3,108 | $5,140 | |
| YouTube | 1,927 | $3,860 |
| Direct | 1,512 | $1,910 |
Revenue is the order total, in its own currency.
TrackRev reads each order's total from Lemon Squeezy and converts it from cents. That is the amount the API reports for the order, so this page does not promise a tax-exclusive figure. Lemon Squeezy is a merchant of record, so it collects and remits VAT and sales tax itself.
- Amount = the order total, converted from cents
- Currency stored per order as Lemon Squeezy reports it
- A later sync that sees the order as refunded reverses revenue and commissions
Initial payments are read. Renewals are not yet.
TrackRev reads Lemon Squeezy orders, which cover one-time purchases and the first payment of a subscription. Recurring renewals live under subscription invoices, which are not read yet, so they fall back to email matching. Do not count on every renewal being credited to the original partner.
- One-time orders and initial subscription payments are tracked
- Renewals from subscription invoices are a follow-up
- For click-accurate attribution, Paddle, Polar, Stripe or Creem pass the visitor id and Lemon Squeezy does not
| Newsletter | 4,212 | $8,420 |
| 3,108 | $5,140 | |
| YouTube | 1,927 | $3,860 |
| Direct | 1,512 | $1,910 |
Setup
How do I connect Lemon Squeezy to TrackRev?
Drop the pixel, call identify() with the buyer email, connect with an API key. A webhook is optional and only speeds up sync.
Drop the first-party pixel
Sets a first-party cookie on your apex domain and records the partner clicks that bring visitors to your site.
<script async
src="https://app.trackrev.io/p.js"
data-id="ws_..."
data-cookie-domain=".yoursite.com"></script>Call identify() with the buyer email
Lemon Squeezy orders are matched by email, so tell the pixel the email as soon as you know it: at signup, login, or before checkout.
// The pixel is already on your page (step 1). Once you know the// user's email (at signup, login, or checkout start), call:window.trk.identify("buyer@email.com"); // That stamps the email onto this visitor (and every link click they// made). We then match Lemon Squeezy orders to them by the buyer's// email on the order. // Heads-up: a buyer who pays with a DIFFERENT email than the one you// identified won't be matched.Connect with a Lemon Squeezy API key
In Lemon Squeezy, create an API key under Settings, API, and paste it into TrackRev (the store id is optional). TrackRev then reads your orders every hour.
Optional: add a webhook for instant sync
The webhook is a doorbell. After verifying the signature with the secret you saved, TrackRev runs the same incremental sync instead of ingesting the event payload. Copy the webhook URL from Settings, Integrations.
# Lemon Squeezy Dashboard > Settings > Webhooks > +## URL: copy it from TrackRev, Settings > Integrations# (shape: /api/webhooks/revenue/lemonsqueezy?c=<connectionId>)# Signing secret: you choose it, then paste the same value into TrackRev## Events:order_createdorder_refundedWhat TrackRev tracks from Lemon Squeezy
What does TrackRev sync from Lemon Squeezy?
Orders
Order total, currency and buyer email, read through the Lemon Squeezy API and matched to a visitor by that email.
Initial subscription payments
The first payment of a subscription is an order and is tracked. Renewals from subscription invoices are not read yet.
Email attribution
identify() stamps the buyer email on the visitor. Click-accurate and promo-code attribution are not available for Lemon Squeezy.
Refunds
An order that Lemon Squeezy reports as refunded reverses its revenue and pending commissions on the next sync.
Hourly sync
Orders are read every hour, and an optional webhook rings the same sync for near-instant updates.
Merchant of record
Lemon Squeezy collects and remits VAT and sales tax. TrackRev uses the order total it reports.
Run an affiliate program on Lemon Squeezy. Pay on real orders.
Paid-tier workspaces flow Lemon Squeezy orders through the same commission ledger as Stripe, Paddle Billing, Polar, Creem and Dodo Payments. Partner sales are credited by the buyer's email, so commissions accrue on orders that settled, not on raw clicks. For click-accurate attribution, Paddle, Polar, Stripe or Creem pass the visitor id and Lemon Squeezy does not. No plan caps the revenue you track.
- Commissions accrue from real Lemon Squeezy orders, not raw clicks
- Attribution is by buyer email, so a different checkout email is not matched
- Refunded orders reverse pending commissions on the next sync
- CSV payout exports for PayPal and Wise, mark paid with a reference
| Newsletter | 4,212 | $8,420 |
| 3,108 | $5,140 | |
| YouTube | 1,927 | $3,860 |
| Direct | 1,512 | $1,910 |
FAQs
How does TrackRev's Lemon Squeezy integration work?
Questions6
Connect Lemon Squeezy. Pay partners on orders that settled.
Connect with an API key, attribute by buyer email. Plans from $29/mo, no limit on tracked revenue, 0% fees.