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

See which channel brings the buyers of your desktop app.

For makers of desktop and Mac apps who sell licenses or subscriptions through Paddle. Virling ties each Paddle payment to the channel and campaign behind the visit to your download page, so you compare launch posts, searches, ads and newsletters by the buyers they bring, not by downloads. Open source under AGPL, hosted or self-hosted.

Start free trial See the demo

Paddle knows who paid, but not which post or search sent them to your download page. Virling keeps a visitor ID in a first-party cookie on your domain and credits a Paddle transaction to that visitor's visits when the transaction's custom_data carries it; the details are in Paddle in the docs.

What a desktop app changes

  • The buyer leaves your site before paying. They download, install and use the app, often for days, and buy later. The visit Virling credits is the one to your download page, so the app has to bring the visitor ID back to Paddle, or send the buyer to a page that still has it.
  • Downloads are not sales. Virling does not count downloads or installs. The Channels card ranks launch posts, searches, ads and newsletters by the license and subscription revenue they bring.
  • Upgrades keep the first channel. A paid upgrade, a plan change or a renewal by the same Paddle customer keeps the channel of their first payment, even when it is bought inside the app with no visitor ID.
The demo Payments view: net revenue, payments and the share matched to a visit, then each payment with the source that brought it
Sample data from the live demo, a made-up invoicing tool that bills through Stripe, not Paddle.

See which channel sells your desktop app

For desktop apps that sell licenses or subscriptions through Paddle. Self-host Virling free under AGPL, or start the hosted version with a 14-day free trial.

Start free trial See the demo

Purchases made inside the app

There is no web visit behind a checkout shown inside the app, and the app has no cookie from your site. Unless the app passes a visitor ID, the payment counts toward revenue as Unattributed, or keeps the channel of an earlier credited payment or trial by the same customer.

  • Buy button that opens your site in the browser: links when the buyer visited your site in that browser before, because the cookie is still there. Leave UTM tags off the link your app opens: a tagged visit is not Direct, so it would take the credit from the channel that first brought the buyer.
  • Checkout the app opens itself: links only when the app passes a visitor ID, as in the next section.
  • Purchase in another browser or on another device: does not link, since that browser has its own cookie and a new visitor ID.

Open checkout from the app with the visitor ID from the download page

Virling reads virling_vid from the transaction's custom_data no matter where checkout was opened, so the app can carry the ID itself. When someone clicks download, the page reads the ID and sends it to your server with the download or trial request; your server keeps it with the trial or license it issues, and passes it back when the app opens checkout or when your server creates the transaction.

// download page: send this with the download or trial request
const vid = window.virling?.vid?.();

// later, when the app opens a Paddle.js checkout in a web view
Paddle.Checkout.open({
  items: [{ priceId: "pri_...", quantity: 1 }],
  customData: { virling_vid: storedVid },
});

window.virling?.vid?.() returns nothing when the script is blocked or not loaded yet, so only store a real value. The ID must be on the transaction: custom data on a customer, product or price is not read. The download visit still has to fall inside the lookback window before the payment.

License activation

Activation runs between your app and your licensing setup, not on your website, so Virling neither sees it nor needs it. A license counts as revenue once its Paddle transaction is completed, whether or not it is ever activated, and moving a license to a new machine adds nothing. Activation counts stay in your licensing tool; Virling reports what was paid and which channel brought it.

Trial-to-paid for downloads

  • A trial that runs inside the app. No Paddle transaction exists until the buyer pays, so the license payment is the first payment and is credited to a visit inside the lookback window, 90 days by default. If people often try the app for longer before buying, choose the 365-day window.
  • A trial key issued on download. Store the visitor ID with the key, as above, so the purchase that ends the trial is credited to the download visit even when it happens inside the app.
  • A Paddle subscription trial. Its first transaction has nothing to pay. Virling never counts it as revenue, a payment or a customer, and the customer's later payments are credited to the visits before it. Only a transaction with origin web starts one, so open trial checkouts with Paddle.js.

Set it up

Put the script on every page of your site, including the download and pricing pages, and connect Paddle with a read-only API key that has transaction.read and adjustment.read, plus subscription.read for subscriptions. The steps, key formats and a sandbox test are in Paddle in the docs.

Test the buy button in the app

  1. Use a sandbox key and build. Connect a key that starts with pdl_sdbx_, and point a build's buy button at a page with a sandbox checkout.
  2. Visit your download page through a tagged link in your default browser, such as https://yourapp.com/download?utm_source=test&utm_medium=email.
  3. Click the buy button in the app and pay with one of Paddle's test cards and an email address you have not used before.
  4. Open /app/yourapp.com/payments after a minute. The payment should show the test source, since the app opened the browser that holds the cookie. If it is Unattributed, the button opened a window inside the app instead.

More: how to track Paddle revenue by traffic source, Paddle revenue attribution and, for subscription products, Paddle for SaaS.

Open source

The code is on GitHub under AGPLv3. Run it yourself as one binary with every feature, or use the hosted service.

Frequently asked questions

Which channel brings the buyers of my desktop app?

The one behind the visit to your download page, once the payment carries that visit's visitor ID. The Channels card then ranks channels and campaigns by the license and subscription revenue they bring, not by downloads.

What happens when the purchase happens inside the app?

A checkout shown inside the app has no virling_vid cookie, so the payment counts toward revenue as Unattributed unless the same customer has an earlier credited payment or trial. To credit it, have the buy button open a page on your domain in the browser, or have the app pass the visitor ID saved from the download page in custom data.

Does Virling track downloads or installs?

No. Virling tracks visits to pages on your site and the payments that carry a visitor ID. It does not see the download, the install or anything inside the app.

Does license activation change what Virling counts?

No. Virling does not see activations. A license counts as revenue once its Paddle transaction is completed, whether or not it is activated, and moving it to another machine adds nothing.

Which permissions does the Paddle API key need?

transaction.read and adjustment.read, plus subscription.read if you sell subscriptions and want Retention to tell who still pays. No other permissions are needed, and Virling never creates, changes or refunds anything.

How are paid upgrades bought in the app credited?

To the channel of the customer's first payment, matched by Paddle customer ID, even without a visitor ID. If that first payment is Unattributed or older than the 90-day import, the upgrade usually is too.

How is a purchase after a free trial of the app credited?

A trial that runs inside your app involves no Paddle transaction, so the license payment is a first payment, credited to a visit inside the lookback window, 90 days by default. A Paddle subscription trial starts with a transaction that has nothing to pay; a later payment of that customer with no visitor ID of its own is credited to the visits before the trial started.

Full guides: Paddle in the docs, Link checkout to visits and Unattributed revenue.

Start free trial