Revenue
Lemon Squeezy
Send Lemon Squeezy sales to EarnedStats.
1. Add the webhook
Lemon Squeezy, Settings, Webhooks, add a webhook with the address below.
Endpoint
https://earnedstats.com/api/webhooks/lemonsqueezy/YOUR_SITE_IDEvents: order_created, subscription_payment_success, order_refunded.
2. The secret
Make up a signing secret, use it there and paste the same one here. Save it in Settings, Revenue, Lemon Squeezy.
3. The visitor id
Checkout links on your site are tagged by the script. For checkouts made by your server, add checkout_data.custom.es_visitor_id.