Paddle IntegrationPaddle Billing Overlay, API & Webhooks

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.

Imtiaz Rayhan
Imtiaz RayhanCo-Founder & Lead Engineer, DotCamp & TrimStats
Tested against Paddle Billing & live TrimStats APIs
Seeded demo workspace
TrimStats Revenue dashboard showing net attributed MRR, orders, AOV, revenue per visitor, and top referrers from verified payment webhooksTrimStats Revenue dashboard showing net attributed MRR, orders, AOV, revenue per visitor, and top referrers from verified payment webhooks
See exact USD-normalized revenue from global Paddle Billing transactions segmented by referrer, UTM campaign, landing page, and buyer country.
Direct answer

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. 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.tsts
    1const attribution = window.trimstats?.attribution?.() ?? {};
    2
    3window.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. 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. 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. 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.

Recommended taxonomy

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 nameWhen to fireSample properties
pricing_viewedProspect views your Paddle-backed SaaS pricing table.{"currency_localized":true}
paddle_checkout_openedUser opens the Paddle Billing overlay via Paddle.Checkout.open().{"plan":"growth","interval":"annual"}
billing_interval_toggledUser switches pricing cards between monthly and annual Paddle price IDs.{"interval":"annual"}
signup_completedNew SaaS account registers prior to launching a Paddle upgrade.{"method":"email"}
paddle_checkout_closedUser dismisses the Paddle overlay via checkout.closed eventCallback without paying.{"plan":"growth"}
Seeded demo workspace
TrimStats verified Paddle, Stripe, and Polar webhook endpoints next to a chronological customer timeline joining acquisition to paid subscriptionTrimStats verified Paddle, Stripe, and Polar webhook endpoints next to a chronological customer timeline joining acquisition to paid subscription
Paddle transaction.completed webhooks verify paddle-signature headers on raw bytes and attach directly to chronological buyer timelines.

SaaS conversion funnel ending at verified Paddle transaction.completed webhook

30-day seeded acme.dev demo cohort across 5 SaaS conversion stages

visitors
  1. 1Landing page visit
    12,480 visitors100.0%
  2. 2Viewed /pricing
    3,420 visitors27.4%-72.6% drop
  3. 3Completed signup
    612 visitors4.9%-82.1% drop
  4. 4Opened Paddle overlay
    384 visitors3.1%-37.3% drop
  5. 5Paddle webhook paid
    264 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.

Source: TrimStats seeded demo workspace (acme.dev)
View chart data table
LabelVisitors
Landing page visit12,480 visitors
Viewed /pricing3,420 visitors
Completed signup612 visitors
Opened Paddle overlay384 visitors
Paddle webhook paid264 visitors

Paddle Billing analytics FAQ

Implementation details, privacy trade-offs, and event-quota answers.

How does TrimStats distinguish new Paddle subscriptions from renewals?
TrimStats inspects each Paddle transaction.completed payload automatically: transactions with origin equal to subscription_recurring are stored as subscription_renewal, other transactions carrying a subscription_id are classified as subscription_new, and standalone charges are classified as one_time.
How are Paddle Billing webhooks cryptographically verified?
The Fastify collector verifies the paddle-signature header (ts=...;h1=...) using HMAC-SHA256 over the raw HTTP request payload with your encrypted pdl_ntfset_ secret and enforces a 5-minute timestamp replay window.
Does Paddle localized currency pricing normalize cleanly in TrimStats?
Yes. Paddle automatically localizes checkout currencies for global buyers, and TrimStats records original currency amounts alongside normalized usd_cents across 13 built-in FX currencies (USD, EUR, GBP, CAD, AUD, CHF, JPY, INR, BDT, BRL, SGD, SEK, and NZD).
Does Paddle attribution still work if my marketing site stays cookie-less?
Yes. Even in strictly cookie-less mode, window.trimstats.attribution() captures the visit referrer, landing page, and UTM tags and forwards them inside Paddle customData. Turning on opt-in first-party ID mode or identify() extends lookup to 90 days in ClickHouse.
Is Paddle revenue attribution included on the TrimStats Starter plan?
Yes. Native Paddle, Stripe, Polar, and Custom HMAC revenue webhooks are included on every TrimStats tier starting at $17/month (Starter) through $134/month (Scale).
How does TrimStats handle Paddle Billing refunds and credit adjustments?
Subscribe your TrimStats Paddle webhook to adjustment.created and adjustment.updated alongside transaction.completed. TrimStats records each approved refund as a negative refund transaction, deduplicated by adjustment ID and attributed to the same referrer and campaign as the original payment, so net revenue stays accurate. Credits and chargebacks are not recorded.
Imtiaz Rayhan
Integration guide verified by
Imtiaz Rayhan (Co-Founder & Lead Engineer, DotCamp & TrimStats)

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.

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.

Verified against live TrimStats APIs and tracker bundle.