Attribute every Paddle Billing checkout and recurring renewal to its channel.
Pass window.trimstats.attribution() inside Paddle customData and verify paddle-signature webhooks server-side for ad-blocker-immune 90-day revenue attribution.


How does TrimStats integrate with Paddle Billing for SaaS revenue attribution?
TrimStats integrates natively with Paddle Billing by reading the browser attribution snapshot from Paddle customData (data.custom_data.trimstats) on transaction.completed webhooks. The collector verifies the paddle-signature HMAC-SHA256 header with a 5-minute replay tolerance, classifies subscription_recurring renewals automatically, normalizes 13 currencies into USD, and joins payments to 90-day ClickHouse journeys.
Step-by-step setup for Paddle Billing
Copy-paste implementation verified against the live TrimStats tracker and collector APIs.
- 1
Pass window.trimstats.attribution() inside Paddle Checkout customData
When invoking Paddle.Checkout.open() on your pricing page (or creating a transaction via Paddle API), include customData.trimstats serialized as JSON so Paddle attaches it to transaction.completed webhooks.
paddle-checkout.tsts1const attribution = window.trimstats?.attribution?.() ?? {};23window.Paddle?.Checkout.open({4 items: [{ priceId: 'pri_01hxyz...', quantity: 1 }],5 customData: {6 trimstats: JSON.stringify(attribution),7 },8});Works with Paddle Billing overlay checkouts and API-created transactions. - 2
Create a notification destination in Paddle Billing
In Paddle Billing under Developer Tools -> Notifications -> New destination, set the webhook URL to https://collect.trimstats.com/v1/webhooks/paddle/{siteId} and subscribe to transaction.completed, adjustment.created, and adjustment.updated.
- 3
Save your pdl_ntfset_ signing secret in TrimStats
Copy the pdl_ntfset_... secret from Paddle and save it under Site settings -> Revenue Attribution Webhooks (provider: Paddle). TrimStats encrypts the secret and verifies paddle-signature HMAC-SHA256 on raw bytes.
- 4
Verify first-touch and last-touch revenue attribution in your dashboard
Complete a Paddle Sandbox transaction and confirm Net Revenue, Orders, AOV, and RPV populate under Revenue alongside the customer timeline in Visitors.
High-signal custom events to track for Paddle Billing
Fire any event with window.trimstats?.('event', name, props) and attach it to conversion goals or multi-step ClickHouse funnels.
| Event name | When to fire | Sample properties |
|---|---|---|
| pricing_viewed | Prospect views your Paddle-backed SaaS pricing table. | {"currency_localized":true} |
| paddle_checkout_opened | User opens the Paddle Billing overlay via Paddle.Checkout.open(). | {"plan":"growth","interval":"annual"} |
| billing_interval_toggled | User switches pricing cards between monthly and annual Paddle price IDs. | {"interval":"annual"} |
| signup_completed | New SaaS account registers prior to launching a Paddle upgrade. | {"method":"email"} |
| paddle_checkout_closed | User dismisses the Paddle overlay via checkout.closed eventCallback without paying. | {"plan":"growth"} |


SaaS conversion funnel ending at verified Paddle transaction.completed webhook
30-day seeded acme.dev demo cohort across 5 SaaS conversion stages
- 1Landing page visit12,480 visitors100.0%
- 2Viewed /pricing3,420 visitors27.4%-72.6% drop
- 3Completed signup612 visitors4.9%-82.1% drop
- 4Opened Paddle overlay384 visitors3.1%-37.3% drop
- 5Paddle webhook paid264 visitors2.1%-31.3% drop
Measuring overlay open (384) against server-verified Paddle payment settlement (264) pinpoints overlay abandonment accurately even when ad blockers run.
Methodology: Seeded 30-day acme.dev SaaS funnel illustrating browser checkout events paired with server-verified Paddle webhooks.
View chart data table
| Label | Visitors |
|---|---|
| Landing page visit | 12,480 visitors |
| Viewed /pricing | 3,420 visitors |
| Completed signup | 612 visitors |
| Opened Paddle overlay | 384 visitors |
| Paddle webhook paid | 264 visitors |
Paddle Billing analytics FAQ
Implementation details, privacy trade-offs, and event-quota answers.
How does TrimStats distinguish new Paddle subscriptions from renewals?
How are Paddle Billing webhooks cryptographically verified?
Does Paddle localized currency pricing normalize cleanly in TrimStats?
Does Paddle attribution still work if my marketing site stays cookie-less?
Is Paddle revenue attribution included on the TrimStats Starter plan?
How does TrimStats handle Paddle Billing refunds and credit adjustments?
Co-founder of DotCamp LLC in Brooklyn, NY and lead engineer of TrimStats. Ships privacy-first web analytics, ClickHouse pipelines, and WordPress plugins used on 115,000+ active sites.
- • Architect of the TrimStats 1.96 KB gzipped browser tracker, Fastify collector, and ClickHouse MergeTree pipeline
- • Co-founder of DotCamp LLC (est. 2019), creator of Ultimate Blocks (50,000+ installs), WP Table Builder (50,000+ installs), Tableberg, and OptimizeCamp
- • WordPress.org plugin & theme developer since 2016 with 1,200+ community support replies and 5M+ cumulative plugin downloads
Verification standard: Code snippets, custom event payloads, and webhook contracts for Paddle Billing are verified against the live TrimStats tracker (1.96 KB gzipped) and collector schema as of 2026-11-30.
Related documentation and guides
Instrument Paddle Billing in under 60 seconds
Start on Starter ($17/month for 100,000 monthly events), with cookie-less privacy defaults and full access to revenue webhooks, funnels, cohorts, and UI friction.