virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
integrations / paddle for saas

See which channel brings your Paddle subscribers.

For SaaS products that sell subscriptions through Paddle as merchant of record. Virling ties each transaction, the first payment after a trial and every renewal to the channel that brought the customer, so you compare channels by the customers who pay, not by signups. Open source under AGPL, hosted or self-hosted.

Start free trial See the demo

Paddle sees the checkout, the tax and every later charge. It does not see the ad, search result or post that sent the buyer to your site, and a renewal never brings them back. A read-only API key lets Virling put the two together, as Link checkout to visits describes.

What you get

  • Subscriptions sorted by channel. The first payment of each Paddle customer is matched to the visits that came before it, by default the last one in 90 days that was not Direct. For long B2B sales, first touch or a 365-day window are a setting away.
  • Trial signups that wait for the money. When a subscription opens with a transaction of nothing to pay, Virling treats it as a trial: no revenue, no payment, no customer. The first real charge is credited to the visits before that signup.
  • Every later charge on the first channel. Transactions of origin subscription_recurring, subscription_update and subscription_charge are renewals, and so is any later transaction of the same Paddle customer. Each one copies its channel, referrer, campaign, landing page, country and device from the first payment.
  • Refunds and chargebacks. Approved adjustments of either kind come off the transaction's revenue. Virling rereads the last 60 days of transactions every 6 hours to catch them.
  • Retention by channel. Customers are grouped by the channel of their first payment. With subscription.read, Virling reads each subscription's status and price hourly for still paying, net LTV, churn and MRR; without it, Retention judges by how recently a customer paid.
  • Revenue per visitor and time to pay. Channels lists visitors, revenue and revenue per visitor for each source, and Time to pay gives the median wait from first visit to first charge.

See which channel brings your Paddle subscribers

For SaaS products that bill through Paddle. Virling is open source under AGPL: self-host it free, or use the hosted version with a 14-day free trial.

Start free trial See the demo

Set it up

  1. Add the site. Click + Add a site and enter your domain, such as yourproduct.com, and its timezone.
  2. Install the script. Paste the tag before </head> on your marketing site and your app. The virling_vid cookie is set on your registrable domain, so yourproduct.com and app.yourproduct.com share one visitor ID. Leave cookieless mode off.
  3. Connect Paddle. In Paddle, open Developer tools, then Authentication, and create an API key with transaction.read and adjustment.read, plus subscription.read for retention. Paste it under payments; live keys start with pdl_live_ and sandbox keys with pdl_sdbx_. The last 90 days are imported, then new transactions every minute.
  4. Pass the visitor ID in custom data. Virling reads virling_vid from the transaction's custom_data. With Paddle.js, pass it as customData when you open checkout; for transactions you create on your server, set custom_data: { virling_vid: req.cookies.virling_vid }.
Paddle.Checkout.open({
  items: [{ priceId: "pri_...", quantity: 1 }],
  customData: { virling_vid: window.virling?.vid?.() },
});

The full walkthrough is in how to track Paddle revenue by traffic source, and Paddle UTM tracking covers passing UTM and custom data to checkout. If you also sell a desktop app, see Paddle for desktop apps for what links when the purchase happens inside the app. If you sell an API, CLI or SDK, see Paddle for developer tools. To see what selling through a merchant of record costs, use the merchant of record fee calculator.

Paddle.js customData, tax and the IDs Virling reads

  • Paddle.js customData. Virling reads virling_vid only from the transaction's custom_data. Overlay and inline checkout both pass it on when you give customData to Paddle.Checkout.open. Custom data on a customer, product or price is ignored, and the script never adds the visitor ID to a Paddle checkout by itself.
  • Merchant of record tax. Paddle sells to your customer as merchant of record and adds sales tax or VAT. Virling records the transaction total, which is after discounts and includes that tax, before Paddle's fee. A payment in Virling is therefore larger than what reaches your payout; the merchant of record fee calculator shows the gap.
  • Transaction IDs. Each payment in Virling is one completed Paddle transaction, stored under its txn_ ID, so you can look it up in Paddle.
  • Customer IDs. The ctm_ ID is what links a renewal to the first payment. A transaction without one cannot inherit a channel, and a customer with two subscriptions has both credited to their first payment.
  • Subscription IDs. The sub_ ID tells a trial's $0 transaction apart from other free ones. With subscription.read it also joins each subscription's status and price to the customer for Retention and MRR. It is not used to match renewals.

Upgrades, downgrades and annual plans

  • Upgrades. Paddle charges the prorated difference at once in a transaction of origin subscription_update. It is a renewal on the channel of the first payment, so the channel that brought the customer gets the extra revenue.
  • Downgrades. A downgrade usually leaves the customer a credit instead of a charge. A transaction with nothing to pay is not a payment, and only refund and chargeback adjustments lower revenue, so a downgrade takes nothing off the channel. MRR follows the latest payment, so it drops to the new price at the next renewal.
  • Annual and monthly plans. An annual plan is one payment of the full year on the day Paddle bills it, while a monthly plan adds a payment each month. A few annual buyers can put a channel at the top of the revenue column for one month, so compare new customers as well. MRR counts a yearly price as a twelfth per month.
  • Moving from monthly to annual. The switch is a subscription_update transaction, so the customer stays on their first channel and is not counted twice.
  • Annual plans need subscription.read. Without it, Retention guesses who still pays from the gap between payments, and a customer with a single annual payment drops out of Still paying after about 37 days.

Example: one Paddle subscriber

An invented customer with made-up numbers, as an example of what Virling shows at each step.

DayWhat Paddle recordsWhat Virling shows
0Nothing: the visitor finds your pricing page through a search on GoogleA visit in the Organic search channel, from the Google source
5A completed transaction of origin web for the $40 monthly plan plus 20% VAT, $48 in total, with virling_vid in custom_dataA $48 payment, tax included, credited to Organic search, with its txn_ ID. One new customer
12The customer upgrades, and Paddle charges $18 for the rest of the month in a transaction of origin subscription_update, with no custom dataAn $18 payment marked as a renewal, credited to Organic search through the ctm_ ID. No new customer
14You refund the $18 charge, and Paddle approves the refund adjustmentWithin 6 hours the day 12 payment shows as refunded, on day 12. Organic search has $66 of payments, $18 refunded

Trials, renewals, upgrades and refunds

How Virling reads the transactions, adjustments and subscription statuses Paddle sends for each event.

What happensHow Virling credits itWhere it shows
First paymentTo a visit of the visitor ID in the transaction's custom_data, by default the latest visit in the last 90 days that was not DirectNew customers, Retention, Channels and Payments; it counts toward Time to pay from a channel's third first payment
Payment after a free trialTo the visits before the trial, which starts with a $0 subscription transaction of origin web. The charge has origin subscription_recurring, so it is marked as a renewalPayments and Channels as a renewal, so it is missing from New customers, Time to pay and the Retention customers. The $0 trial transaction is not a payment
RenewalA transaction of origin subscription_recurring, or any later one of the same customer, keeps the channel of the first paymentPayments and Channels as a renewal; adds to net LTV on Retention
UpgradeA transaction of origin subscription_update or subscription_charge keeps the channel of the first paymentShown like a renewal
RefundAn approved refund or chargeback lowers its transaction, on that transaction's date. The last 60 days are read again every 6 hours; one on an older transaction is not picked up automaticallyThe Refunded figure on Channels, the refunded filter on Payments, and refund rate and net LTV on Retention
Cancelled customerNo new credit. Earlier payments keep their channel, and a returning customer with the same ctm_ ID keeps the original oneLeaves Still paying on Retention, and MRR. With subscription.read, status is read once an hour and a scheduled cancellation counts as paying until it takes effect; without it, Retention uses payment recency and there is no Paddle MRR

Read your first month

  1. Channels: new customers before revenue. Revenue per visitor is the fair comparison, but renewals and backfilled payments inflate the revenue column, and most of the backfill has no visit. New customers and the matched revenue line tell you what the script has tied to a channel since it went live.
  2. Retention: wait for the second month. Churn there needs customers whose first payment is over 30 days old, so this month's are not in it yet. Paddle bills the charge after a free trial as a renewal, so trial customers are not in the Retention customers at all; follow them on Payments.

Early numbers that mislead:

  • An empty channel. It may only be slow. Compare its age with the median on Time to pay first.
  • A winning channel. Totals include tax, and one annual plan in a high-VAT country can decide the ranking. Look at how many payments it has.
  • Churn by channel. Retention stays silent below 20 customers or 5 still paying, and a few cancellations prove little.

What to know

  • The backfill reads 90 days. Renewals of older subscriptions have no first payment with a visit and show as Unattributed until newer customers take over.
  • A transaction created more than about 10 minutes before it is paid, such as an invoice, can take up to 6 hours to appear.
  • A refund on a transaction older than 60 days is not picked up automatically.

Open source

The code is AGPLv3 on GitHub. Run the hosted service or self-host the single binary; no feature is held back. A load test on 2026-10-31, capped at one vCPU and 1 GB of RAM, ingested 100,000 pageviews at 2,829 a second, none failed, p99 34 ms, with 157 MB of memory in use afterwards.

Frequently asked questions

Which channel brings my Paddle subscribers?

Connect Paddle to Virling with a read-only API key and pass the visitor ID as customData when you open Paddle checkout. Virling credits a customer's first transaction to the visits that led to it and gives every later charge the same channel, so Channels and Retention compare sources by subscribers who pay.

How are Paddle renewals attributed?

A transaction whose origin is subscription_recurring, subscription_update or subscription_charge is a renewal. Virling finds the customer's first payment by Paddle customer ID and copies its channel, referrer, campaign and landing page. Plan changes keep that channel too.

What about free trials on Paddle?

A subscription's first transaction with nothing to pay starts a trial. That transaction adds no revenue, payment or customer. When the first charge arrives without custom data, it goes to the visits from before the trial.

Which permissions does the Paddle API key need?

transaction.read and adjustment.read, plus subscription.read so Retention can tell who still pays. No other permissions are needed, and Virling never creates, changes or refunds anything.

What about Paddle subscriptions that began before Virling was connected?

Virling imports transactions from the last 90 days. When a subscription's first payment is older than that, its earliest payment in Virling stands in, and it rarely has a visit, so its renewals are usually Unattributed. A first payment inside the 90 days but from before the script was on your site is Unattributed too. Their revenue still counts, but Retention leaves out any customer whose earliest payment in Virling is a renewal.

How do annual Paddle plans show in MRR and Retention?

With subscription.read, Virling reads each subscription's price and billing period every hour, so an annual plan adds a twelfth of its yearly price to MRR and counts as still paying until it lapses or a scheduled cancellation takes effect. Without that permission, Retention judges by the gap between payments, and an annual customer with one payment stops counting as still paying after about 37 days.

Full guides: Set up Virling for a SaaS product, Paddle in the docs and Renewals.

Start free trial