How-to

# How to Track Paddle Revenue by Traffic Source

Connect Paddle Billing transactions to the visits, sources and UTM campaigns behind them: checkout buttons with no code, Paddle.js, the API, webhooks, renewals and refunds.

Last reviewed 23 November 2026 · 11 min read · By the [SuprAnalytics team](https://supranalytics.app/about) at SuprApps

Paddle shows you every transaction. It doesn't show you which post, search or newsletter sent the customer. To see that, a visitor id from your website analytics has to ride along with the checkout and come back with the transaction.

Paddle has the right place for it: custom data, which it keeps on the transaction and copies to the subscription and its renewals. This guide covers the three ways to open a Paddle checkout, the webhook that reports each payment, how renewals, refunds and chargebacks count, and where attribution can't find a source.

## The quick answer

To attribute Paddle revenue to traffic sources:

1. Record each visit and its source with an analytics script on every page.
2. Carry the visitor id into checkout as custom data. Paddle.js checkout buttons get it automatically; `Paddle.Checkout.open()` and the API take it from you.
3. Add a Paddle notification destination for `transaction.completed`, `adjustment.created` and `adjustment.updated`.
4. Each completed transaction is matched to the visitor, and your attribution model picks which of their visits gets the credit.

## Why Paddle alone can't tell you where customers came from

Paddle knows the transaction: the items, the totals and the tax, the customer and their email, and the subscription it created or belongs to. It also keeps custom data, your own JSON on the transaction, and Paddle's own guide suggests it for UTM tags ([Paddle: custom data (Paddle documentation, opens in a new tab)](https://developer.paddle.com/build/transactions/custom-data)).

UTM tags in custom data describe the checkout that was opened, not the visits before it. If a customer read your post on Reddit, came back two days later through Google and clicked the same buy button, the tags on that button are the same either way. The referrer, the landing page and the earlier visits live in your website analytics, which has never seen the transaction. Joining the two needs an id both sides share.

## Step 1: Track website visitors and their sources

Add the SuprAnalytics script to the `<head>` of every page ([installation guides](https://supranalytics.app/docs/installation.md)). Each visit then records its referrer, its UTM tags, its landing page and a visitor id kept in a first-party cookie for a year. A visit with no referrer and no tags counts as Direct. The [tracking parameters guide](https://supranalytics.app/docs/tracking-parameters.md) lists the tags it reads, and the [Stripe guide](https://supranalytics.app/blog/how-to-track-stripe-revenue-by-traffic-source) explains sources and sessions in more depth; it all applies to Paddle too.

## Step 2: Carry the visitor into Paddle checkout

| How the checkout opens | What carries the visitor id |
| --- | --- |
| Checkout buttons, `class="paddle_button"` | What carries the visitor id: Automatic. The script adds it to the button's data-custom-data on load and on click. |
| `Paddle.Checkout.open()` | What carries the visitor id: One line: pass it as `customData`. |
| Transactions created through the API | What carries the visitor id: Server code: put it in the transaction's `custom_data`. |
| A hosted checkout link without it | What carries the visitor id: Nothing. The script doesn't change links; the payment counts and is matched only through a known customer id or email. |

### Checkout buttons: nothing to add

Paddle.js turns any element with `class="paddle_button"` into a checkout launcher, and its `data-custom-data` attribute becomes the transaction's custom data ([Paddle: HTML data attributes (Paddle documentation, opens in a new tab)](https://developer.paddle.com/paddle-js/about/html-data-attributes)). When the page loads, and again when a visitor clicks, the SuprAnalytics script adds `supr_visitor_id` and `supr_session_id` to that attribute, keeping any keys you already set.

What the script does to a Paddle checkout button

```
<a href="#" class="paddle_button" data-items='[{"priceId":"pri_123","quantity":1}]'>Buy now</a>
<!-- after load: data-custom-data='{"supr_visitor_id":"6f1c…","supr_session_id":"a83d…"}' -->
```

- A button whose custom data already has a `supr_visitor_id` is left alone.
- To stop the script changing buttons, add `supr-paddle="false"` to the SuprAnalytics script tag.
- Buttons are also left alone where the script doesn't track: in a browser you've excluded from your stats, and for bots.

### Paddle.Checkout.open(): pass customData

If you open checkouts from your own code, read the ids from the SuprAnalytics script and pass them as `customData`.

Paddle.js, from the SuprAnalytics Paddle guide

```
Paddle.Checkout.open({
  items: [{ priceId: "pri_123", quantity: 1 }],
  customData: {
    supr_visitor_id: window.supr.visitorId(),
    supr_session_id: window.supr.sessionId(),
  },
});
```

Browser code with no keys in it. Creating transactions on your server instead? Put the same two keys in the transaction's `custom_data`, reading `supr_visitor_id` from the request's cookie. The rest of the setup is in the [Paddle guide](https://supranalytics.app/docs/paddle.md).

Paddle copies a transaction's custom data to the subscription it creates, and a subscription's custom data to every transaction it creates later: renewals, upgrades and downgrades, and one-time charges ([Paddle: custom data (Paddle documentation, opens in a new tab)](https://developer.paddle.com/build/transactions/custom-data)). So the visitor id set at checkout comes back with each renewal.

### When there's no id: customer id and email

A transaction without a visitor id still counts. SuprAnalytics then looks for the Paddle customer id on an earlier payment that was matched, then a visitor with the same email, known from an earlier payment or from the [identify call](https://supranalytics.app/docs/user-identification.md) your app makes at sign-up. If nothing matches, the transaction is revenue without a source.

What breaks the connection

- **Another device or browser.** A phone and a laptop are two visitors.
- **Blocked tracking.** Ad blockers can stop visits being recorded. [Serving the script from your own domain](https://supranalytics.app/docs/proxy-guide.md) helps.
- **Cookieless mode.** A visitor is recognised for one day (UTC), so only same-day payments are attributed ([cookieless tracking](https://supranalytics.app/docs/cookieless-tracking.md)).
- **A link opened elsewhere.** A hosted checkout link sent by email has no visitor id unless your server put one in the transaction.

## Step 3: Connect the Paddle webhook

The connection is one notification destination per website and its secret key. There's no API key to share, and past transactions aren't imported: SuprAnalytics records payments from the moment the webhook is set up. It works with Paddle Billing; Paddle Classic's alerts aren't supported.

1. Copy your webhook URL

   In SuprAnalytics, open the website's **Settings → Revenue**, pick Paddle, and copy the URL. It looks like `https://supranalytics.app/api/webhooks/paddle/YOUR_WEBSITE_ID`.
2. Add a notification destination in Paddle

   In Paddle, open **Events → Notifications** and click **New destination**. Set its type to a webhook URL, not an email address, and paste the URL ([Paddle: notification destinations (Paddle documentation, opens in a new tab)](https://developer.paddle.com/webhooks/about/notification-destinations)).
3. Select three events

   Select `transaction.completed`, `adjustment.created` and `adjustment.updated`, and save the destination.
4. Paste the secret key

   Copy the destination's secret key, which starts with `pdl_ntfset_`, into Settings → Revenue with Paddle selected, and click Connect.

| Paddle event | What SuprAnalytics does |
| --- | --- |
| `transaction.completed` | What SuprAnalytics does: Records the transaction. Paddle sends it once a paid transaction is processed and its status is `completed` ([Paddle: transaction.completed (Paddle documentation, opens in a new tab)](https://developer.paddle.com/webhooks/transactions/transaction-completed)). Free transactions are skipped. |
| `adjustment.created` | What SuprAnalytics does: Applies a refund or chargeback that is already `approved`. One waiting for Paddle's approval is skipped ([Paddle: adjustments (Paddle documentation, opens in a new tab)](https://developer.paddle.com/webhooks/adjustments/adjustment-created)). |
| `adjustment.updated` | What SuprAnalytics does: Applies a refund or chargeback when Paddle approves it later. Most refunds on live accounts wait for Paddle's approval, so this is usually the event that counts. |

### What happens on every delivery

- **Signature check.** Paddle signs each delivery in the `Paddle-Signature` header: a timestamp `ts` and an `h1` HMAC-SHA256 of the timestamp and the body joined with a colon, keyed with your secret key ([Paddle: signature verification (Paddle documentation, opens in a new tab)](https://developer.paddle.com/webhooks/about/signature-verification)). SuprAnalytics checks it and refuses a timestamp more than 5 minutes off. A wrong key is answered with 401 "Invalid signature" and nothing is recorded.
- **Retries.** Paddle expects a 200 within five seconds. On live accounts it retries up to 60 times over about two days; in the sandbox, 3 attempts within about two minutes ([Paddle: respond to webhooks (Paddle documentation, opens in a new tab)](https://developer.paddle.com/webhooks/about/respond-to-webhooks)).
- **Duplicates.** Each transaction is stored once, and each adjustment is applied once by its id, so a delivery that arrives twice doesn't count twice.

## Step 4: Test in Paddle's sandbox

Paddle's [sandbox (Paddle documentation, opens in a new tab)](https://developer.paddle.com/sdks/sandbox) is a separate account with its own credentials, notification destinations and data, where only test cards work. Test there; never make a real purchase just to test attribution.

Use a separate website for testing

Each website keeps one Paddle secret key, and payments can't be deleted, so test transactions sent to your real website stay in its revenue. Add a second website for your staging site, with its own script and webhook URL, and point the sandbox destination at it.

1. In the sandbox, add a destination for the test website's URL with the three events, and paste its secret key into that website's Settings → Revenue.
2. Open your staging site in a fresh window with a tagged link, such as `?utm_source=test&utm_medium=email&utm_campaign=attribution_check`.
3. Click your checkout button (or open your checkout) and pay with Paddle's test card, 4242 4242 4242 4242.
4. In Paddle, open **Events → Notifications** and check the `transaction.completed` notification's delivery log. It should show status 200; where the response is shown, look for `"attributed": true`.
5. In SuprAnalytics, the payment appears in the visitor's journey and the Campaign report credits `attribution_check`.

The response SuprAnalytics sends Paddle for a recorded, matched transaction

```
{
  "received": true,
  "result": { "visitorId": "…", "attributed": true, "duplicate": false }
}
```

`"attributed": false` means the transaction was recorded without a source: check that its custom data carried the visitor id. A retried delivery answers `"duplicate": true`.

When it works, add a destination in your live Paddle account for your real website, with its own secret key.

Revenue by referrer, with payments from several providers combined.

## What Paddle revenue SuprAnalytics counts

| Transaction | How it's counted |
| --- | --- |
| Amount | How it's counted: The transaction's `details.totals.total` less `details.totals.tax`: after discounts, before tax. Paddle is the merchant of record and remits the tax ([Paddle: how Paddle works (Paddle documentation, opens in a new tab)](https://developer.paddle.com/get-started/how-paddle-works)), so tax isn't your revenue. Paddle's fees aren't taken off. Transactions in other currencies are converted to your website's currency with daily rates. |
| First payment | How it's counted: A checkout (origin `web`) or a transaction created through the API (origin `api`). Counts toward new customers, conversion rate and revenue. |
| Renewal | How it's counted: Any transaction whose origin starts with `subscription_`: `subscription_recurring` for renewals, `subscription_update` for plan changes, `subscription_charge` for one-time charges. Revenue, but not a new customer. |
| Free transaction | How it's counted: Skipped, such as a zero-value `subscription_payment_method_change`. |
| Full refund or chargeback | How it's counted: Once approved, marks the payment refunded; it drops out of revenue. |
| Partial refund | How it's counted: Once approved, lowers the payment by the adjustment's subtotal, the refunded amount before tax. |
| Chargeback reversal | How it's counted: Not applied: a payment marked refunded by a chargeback stays refunded. |

So SuprAnalytics totals won't match Paddle figures that include tax or take off fees. Payment tracking also isn't subscription analytics: SuprAnalytics doesn't calculate MRR, ARR or churn, and cancellations, which aren't payments, aren't recorded. What it adds is where paying and renewing customers came from ([subscription revenue](https://supranalytics.app/features/subscription-revenue)).

## First touch or last touch?

Each payment keeps two visits: the visitor's first visit ever and their last visit before paying. **Last touch** is the default and credits the visit that converted, even a direct one. With `supr_session_id` in the custom data, that is the exact visit the checkout opened in. **First touch** credits the visit that brought them in. Change it in **Settings → Revenue → Attribution model**; the switch re-credits past payments too. The [first-touch vs last-touch guide](https://supranalytics.app/blog/first-touch-vs-last-touch-attribution) works through examples.

## Common Paddle attribution problems

| Problem | Likely cause and fix |
| --- | --- |
| No Paddle payments show up | Likely cause and fix: Check the notification's delivery log under Events → Notifications. 400 "Paddle is not configured for this website" means no secret key is saved for that website; 401 "Invalid signature" means the key belongs to another destination, or sandbox and live are mixed up. |
| Payments have no source | Likely cause and fix: The transaction's custom data carried no visitor id. Check that the script runs on the page with the button, or that your code passes customData, and identify signed-in users before checkout. |
| A button isn't tagged | Likely cause and fix: Its custom data already has a `supr_visitor_id`, the script tag carries `supr-paddle="false"`, the element lacks `class="paddle_button"`, or its `data-custom-data` isn't valid JSON. |
| A refund isn't taken off | Likely cause and fix: Paddle hasn't approved it yet. It's applied when adjustment.updated reports it approved. |
| Revenue lower than in Paddle | Likely cause and fix: SuprAnalytics counts the amount before tax, lowers partial refunds, takes off chargebacks and skips free transactions. |

More on this: [Paddle revenue attribution](https://supranalytics.app/integrations/paddle) · [Paddle setup guide](https://supranalytics.app/docs/paddle.md) · [Renewals and refunds](https://supranalytics.app/docs/renewals-refunds.md) · [How revenue attribution works](https://supranalytics.app/revenue-attribution) · [Pricing](https://supranalytics.app/pricing)

## Frequently asked questions

### Can Paddle show where my customers came from?

Not on its own. Paddle records the transaction, the customer and their email, and any custom data you attach, including UTM tags if you pass them. It doesn't see the visits before checkout, so it can't tell you that a customer first found you through a search last week.

### Do Paddle checkout buttons need any code for attribution?

No. With the SuprAnalytics script on the page, every element with class="paddle_button" gets supr_visitor_id and supr_session_id in its data-custom-data, on load and again on click, keeping any custom data you set. Checkouts opened with Paddle.Checkout.open() and transactions created through the API need the visitor id passed in.

### Which Paddle webhook events do I need?

transaction.completed, adjustment.created and adjustment.updated, sent from a notification destination of the Webhook type to your website's webhook URL. transaction.completed covers checkouts and every subscription charge; the adjustment events carry refunds and chargebacks.

### Does SuprAnalytics count tax in Paddle revenue?

No. Revenue is the transaction's total less its tax: after discounts, before tax. Paddle is the merchant of record and remits the tax. Paddle's fees aren't taken off, so totals differ from your Paddle payouts.

### Are Paddle subscription renewals tracked?

Yes. Transactions a subscription creates, with an origin such as subscription_recurring, subscription_update or subscription_charge, are recorded as renewals. Paddle copies the subscription's custom data to them, so they carry the same visitor id as the first checkout. Renewals don't count as new customers. This is payment tracking, not MRR or churn.

### How are Paddle refunds and chargebacks handled?

They count once Paddle approves them. A full adjustment marks the payment refunded; a partial one lowers it by the adjustment's pre-tax subtotal. Each adjustment is applied once, by its id. Refunds still waiting for Paddle's approval change nothing.

### Does this work with Paddle Classic?

No. SuprAnalytics handles Paddle Billing's webhooks, signed with the Paddle-Signature header. Paddle Classic's alerts aren't supported.

### Why do some Paddle payments have no traffic source?

They couldn't be matched to a recorded visit: the transaction carried no visitor id in its custom data, the customer paid from a hosted checkout link opened outside your site, an ad blocker hid the visits, or cookieless mode saw a later day as a new visitor. They still count in your total revenue, without a source.

## More articles

[All articles](https://supranalytics.app/blog)

- [Guide · 22 min readBest Analytics Tools for SaaS in 2026Compare the best SaaS analytics tools for website traffic, product usage, conversions, subscriptions, and revenue attribution. Find the right fit for your SaaS.Read](https://supranalytics.app/blog/best-analytics-for-saas)
- [Comparison · 18 min readBest Google Analytics Alternatives With Revenue Tracking in 2026Compare Google Analytics alternatives for revenue tracking, Stripe payments, conversions, and attribution. Find the right analytics tool for your business.Read](https://supranalytics.app/blog/google-analytics-alternatives-with-revenue-tracking)
- [Comparison · 4 min readBest Privacy-Friendly Website Analytics Tools in 2026Compare privacy-friendly website analytics tools by cookies, visitor tracking, hosting, features, and pricing. Find the right alternative to Google Analytics.Read](https://supranalytics.app/blog/best-privacy-friendly-analytics)
- [How-to · 17 min readHow to Track Stripe Revenue by Traffic SourceLearn how to connect Stripe payments to website traffic sources, UTM campaigns, and visitor journeys. Understand attribution, webhooks, renewals, and refunds.Read](https://supranalytics.app/blog/how-to-track-stripe-revenue-by-traffic-source)
- [How-to · 10 min readHow to Track Polar Revenue by Traffic SourceConnect Polar.sh payments to the traffic sources, UTM campaigns and visits behind them: checkout links, the Checkout API, webhooks, renewals and refunds.Read](https://supranalytics.app/blog/how-to-track-polar-revenue-by-traffic-source)
- [How-to · 11 min readHow to Track Dodo Payments Revenue by Traffic SourceConnect Dodo Payments to the traffic sources, UTM campaigns and visits behind each payment: payment links, checkout sessions, webhooks, renewals and refunds.Read](https://supranalytics.app/blog/how-to-track-dodo-payments-revenue-by-traffic-source)
- [How-to · 13 min readHow to Track Lemon Squeezy Revenue by Traffic Source (and Keep It When You Migrate)Credit Lemon Squeezy orders to traffic sources until it stops taking payments on 31 March 2027, and keep that history when you move to another provider.Read](https://supranalytics.app/blog/how-to-track-lemon-squeezy-revenue-by-traffic-source)
- [How-to · 13 min readHow to Track ChatGPT Referral TrafficLearn how to identify ChatGPT referral traffic, track AI visitors and conversions, and understand why some AI-driven visits appear as Direct.Read](https://supranalytics.app/blog/how-to-track-chatgpt-referral-traffic)
- [How-to · 15 min readHow to Track Conversions Without Google Analytics 4Learn how to track website conversions without GA4, including button clicks, form submissions, signups, purchases, and conversion funnels.Read](https://supranalytics.app/blog/how-to-track-conversions-without-ga4)
- [Explainer · 13 min readFirst-Touch vs Last-Touch Attribution: What's the Difference?Understand first-touch vs last-touch attribution with real-world examples. Learn how each model credits traffic sources, conversions, and revenue.Read](https://supranalytics.app/blog/first-touch-vs-last-touch-attribution)

---

This page on the web: https://supranalytics.app/blog/how-to-track-paddle-revenue-by-traffic-source
More of SuprAnalytics for AI agents: https://supranalytics.app/llms.txt
