EarnedStats Docs

Revenue

Paddle

Send Paddle sales to EarnedStats.

1. Add the webhook

Paddle, Developer tools, Notifications, New destination. Paste the address below.

Endpoint
https://earnedstats.com/api/webhooks/paddle/YOUR_SITE_ID

Events: transaction.completed, adjustment.created, adjustment.updated.

2. The secret

Copy the secret key Paddle shows for the destination. Save it in Settings, Revenue, Paddle.

3. The visitor id

Pass the visitor id as custom data when you open the checkout.

Code
Paddle.Checkout.open({
  items: [...],
  customData: { es_visitor_id: window.earnedstats?.attribution?.().es_visitor_id },
});