Grosslytics

How to Track Paddle Revenue & Renewals by Source

Attribute Paddle Billing transactions and renewals to traffic sources using customData and signed webhooks. Covers full refunds, taxes, and fees.

Pass the Grosslytics visitor ID into Paddle Checkout as customData.visitor_id and send Paddle’s transaction.completed, adjustment.created, and adjustment.updated webhooks to Grosslytics. Paddle copies that ID onto the subscription and every renewal, so initial sales, recurring charges, and approved full refunds credit the original traffic source.

Key takeaways

  • Pass customData.visitor_id into Paddle.Checkout.open() and verify custom_data.visitor_id arrives on webhook payloads.
  • Subscribe to transaction.completed for initial and recurring payments plus adjustment.created and adjustment.updated for approved full refunds.
  • Grosslytics strips reported Paddle tax automatically and estimates Paddle’s 5% + $0.50 fee schedule before attributing net revenue.
  • Check both an initial checkout and one subscription_recurring event in sandbox before switching live traffic.

What do you need before opening Paddle Checkout?

You need a Paddle Billing product and price, an initialized Paddle.js integration, and a Grosslytics site ID.

This walkthrough covers Paddle Billing (transaction.completed and adjustment.*), not legacy Paddle Classic. Start in the Grosslytics setup wizard, add your domain, and pick the reporting currency matching your Paddle prices.

  1. Install g.js on your marketing and pricing pages.
  2. Initialize Paddle.js with your client-side token.
  3. Configure a sandbox webhook destination in Paddle Developer Tools.
  4. Plan to inspect both one initial purchase and one recurring renewal event.

Check the tracker guide if you self-host or serve strict Content Security Policy headers. Looking for a Paddle-ready alternative to DataBull or DataFast? Compare them in Best DataBull alternatives for Paddle & net revenue.

Step 1: How do you pass the visitor ID into Paddle.js?

Read localStorage.getItem('gl_vid') after g.js loads and attach it inside Paddle.Checkout.open({ customData }).

<script defer src="https://grosslytics.com/g.js"
  data-site-id="YOUR_SITE_ID"></script>
<script src="https://cdn.paddle.com/paddle/v2/paddle.js"></script>

In your browser checkout handler:

// Browser: initialize once, then call openCheckout from your buy button.
Paddle.Environment.set('sandbox');
Paddle.Initialize({ token: 'test_YOUR_CLIENT_SIDE_TOKEN' });

function openCheckout() {
  let visitorId = null;
  try { visitorId = localStorage.getItem('gl_vid'); } catch {}
  Paddle.Checkout.open({
    items: [{ priceId: 'pri_YOUR_RECURRING_PRICE_ID', quantity: 1 }],
    ...(visitorId ? { customData: { visitor_id: visitorId } } : {})
  });
}

Switch Paddle.Environment and your token for production. If gl_vid is missing, checkout still opens without blocking the buyer. Source: Paddle.Checkout.open parameters.

Paddle copies transaction customData onto the subscription and recurring transactions, and sends it in webhooks as custom_data.visitor_id. Source: Paddle custom data.

Paddle documentation showing customData in the Checkout open method instructions.
Public Paddle documentation explaining customData on Paddle.Checkout.open. Captured 2026-11-08. Source: Paddle.

Check a test payment

Send the test checkout through the same destination and look for the visitor ID in the signed payment event. An approved full refund removes the sale from revenue. Reconcile partial refunds separately in Paddle.

Open the Paddle webhook setup step. See the closed Stripe sandbox example for a worked example of comparing charges, refunds and fees.

Step 2: Which Paddle webhook events should Grosslytics receive?

Subscribe your Grosslytics Paddle webhook URL to transaction.completed, adjustment.created, and adjustment.updated, and save the endpoint signing secret in Payments settings.

https://YOUR_ANALYTICS_DOMAIN/api/webhooks/paddle?siteId=YOUR_SITE_ID
Paddle field Provider payload path How Grosslytics uses it
Visitor ID data.custom_data.visitor_id Links the sale to the tracked visit
Paid amount data.details.totals.grand_total Starting total before tax exclusion
Tax data.details.totals.tax Deducts sales tax from gross revenue
Currency data.currency_code Must match your site’s reporting currency
Renewal flag data.origin Marks subscription_recurring charges as renewals
Signature Paddle-Signature header Checks the raw body against your signing secret

Keep the raw JSON request body intact for signature checks, as described in Paddle webhook signature verification and the transaction.completed event docs. See the payment integration reference for configuration details.

Step 3: How do you test and compare sources in sandbox?

Open a campaign-tagged link, complete a Paddle sandbox checkout, and verify the credited source on the dashboard.

https://your-site.example/pricing?utm_source=google&utm_medium=cpc&utm_campaign=paddle-test

Confirm the initial transaction appears under google and inspect a sandbox subscription renewal (origin: "subscription_recurring") as well as a test full refund (adjustment.created / adjustment.updated).

Grosslytics public demo showing first-touch net revenue, a daily chart and source reports.
Grosslytics public demo with sample data. Captured November 8, 2026. View source page.

Use the dashboard definitions to compare first-touch, last-touch, and 50/50 linear attribution across your sources.

How does Grosslytics handle Paddle tax, fees, and refunds?

Grosslytics removes reported VAT and sales tax first, then subtracts Paddle’s standard 5% + $0.50 fee schedule to calculate net revenue per channel.

On a $120 Paddle payment that includes $20 in sales tax, Grosslytics strips the $20 tax and estimates $6.50 in fees (5% of $120 + $0.50), recording $93.50 in net revenue:

paid = 12000 cents
tax = 2000 cents
estimated_fee = round(12000 * 500 / 10000) + 50 = 650 cents
net_after_tax_and_fee = 12000 - 2000 - 650 = 9350 cents

Because negotiated volume pricing or multi-currency settlements can differ from the default schedule, compare totals against your Paddle settlement statements. Approved full refunds (adjustment.created and adjustment.updated) remove the sale from revenue; partial refunds stay unchanged and need manual reconciliation in Paddle. Model fee rates across providers with the payment fee calculator.

How Grosslytics reports Paddle renewals and LTV

Grosslytics calculates LTV by first-touch source: it sums net charges (including subscription_recurring renewals) per visitor ID and divides by the buyer count.

If two buyers from a blog post pay $300 net across their initial orders and renewals, the LTV panel shows $150 per customer for that post. The Paddle webhook handler does not match buyers by email yet, so renewal attribution depends on custom_data.visitor_id staying on the subscription. That number reflects observed cash per customer, not normalized MRR or a fixed 90-day cohort window.

Pre-launch verification checklist

  1. Confirm gl_vid appears in custom_data.visitor_id on the sandbox transaction.completed webhook.
  2. Verify Paddle-Signature validation succeeds with HTTP 200 (check your signing secret if 401).
  3. Confirm reported tax is deducted and currency matches your site settings.
  4. Test a subscription_recurring renewal and verify it credits the original acquisition channel.
  5. Trigger a full refund adjustment and confirm the sale is marked refunded in Grosslytics.

If you also use Polar or Dodo Payments alongside Paddle, follow our Polar and Dodo attribution guide.

Frequently asked questions

Why is customData spelled differently in the webhook?

Paddle.js accepts camelCase customData in the browser, while Paddle’s REST API and webhook payloads return snake_case custom_data. Grosslytics reads data.custom_data.visitor_id from the webhook.

Does Grosslytics handle Paddle refunds automatically?

Yes, for approved full refunds sent via adjustment.created and adjustment.updated. Grosslytics ignores partial, pending, and rejected adjustments; reconcile partial refunds in Paddle.

Does choosing a 90-day date range show 90-day cohort LTV?

No. The LTV panel aggregates all-time net receipts per identified customer grouped by their first-touch source, independent of the traffic date range selected for the main chart.

Does the net figure match my exact Paddle payout?

Grosslytics strips reported tax and applies the standard 5% + $0.50 fee estimate rather than reading exact settlement totals.fee or foreign-exchange payouts, so use Paddle statements for final bookkeeping.