LemonSqueezy integration — Track digital product sales, subscriptions, and license keys with webhook-based attribution
Connect LemonSqueezy to Icodrip in under 60 seconds. Add your API key and webhook URL, and Icodrip starts tracking every order and subscription event automatically. Perfect for indie hackers, digital product creators, and SaaS companies using LemonSqueezy as their merchant of record. LemonSqueezy handles payments, tax compliance, and delivery — Icodrip handles the affiliate tracking. Supports one-time purchases, subscriptions, license keys, pay-what-you-want pricing, and free trials. Attribution works via referral cookies, custom checkout data, and customer email matching. Recurring commissions on subscriptions are calculated automatically on each renewal.
Track sales of e-books, courses, templates, software, and any digital product sold through LemonSqueezy. One-time and subscription products supported.
When customers activate license keys, the original referral is maintained. Track the full journey from affiliate click to license activation.
LemonSqueezy handles global tax and VAT. Your affiliate program runs in 100+ countries with zero tax configuration on your end.
For PWYW products, commissions are calculated on the actual amount paid by the customer, not a fixed price.
When a LemonSqueezy refund is processed, the associated commission is automatically reversed. No manual adjustments needed.
Track trial signups and only pay commissions when trials convert to paid subscriptions. Trial-to-paid conversion rates visible in your dashboard.
In your LemonSqueezy dashboard, go to Settings > API and create an API key. Copy it to Icodrip's integration settings.
Copy the webhook URL from your Icodrip dashboard and add it in LemonSqueezy under Settings > Webhooks. Enable all order and subscription events.
Optionally add the Icodrip JavaScript SDK (< 2KB) to your landing page for enhanced attribution. Not required if you use custom checkout data.
Make a test purchase on your LemonSqueezy store. Confirm the conversion appears in your Icodrip dashboard with the correct affiliate attribution.
Launch a digital product on LemonSqueezy and instantly add an affiliate program. Creators and reviewers can promote your product and earn commissions on every sale.
Sell online courses, Notion templates, or design assets. Affiliates share your store link and earn a percentage on each sale.
Run a SaaS product with LemonSqueezy handling billing and tax compliance. Icodrip tracks recurring subscription payments and pays affiliates on every renewal.
// Add referral data to LemonSqueezy checkout
LemonSqueezy.Setup({
eventHandler: (event) => {
if (event.event === 'Checkout.Success') {
// Conversion is tracked via webhook automatically
console.log('Purchase completed:', event.data);
}
}
});
// The Icodrip SDK automatically captures the referral code
// and passes it via the checkout's custom data field<!-- Add to your landing page for automatic attribution -->
<script src="https://cdn.icodrip.com/ak.js"
data-program="prog_xxxxx">
</script>
<!-- When visitors click an affiliate link and later purchase
on LemonSqueezy, the referral is attributed automatically
via customer email matching -->Setup takes less than 60 seconds.
No code changes required.
Other Payment Processors integrations
Create your free account and connect LemonSqueezy in under a minute.