Plugin sales attribution for plugin and theme sellers.
Buyers of a WordPress plugin, theme, template or code license usually find it in your docs, a marketplace listing, a blog post, a newsletter or a social post, then buy on your own site. Virling joins each license sale and renewal to the visit that came before it, so the dashboard shows which of those channels brought the money, not just the downloads. Add the script to your marketing site, tag the links in your free-version listings and readme files, and connect Paddle, LemonSqueezy, Polar, Creem or Stripe.
A plugin buyer rarely pays on the first visit. They install the free version, read the docs, open a support thread and come back when a client project needs the pro features. Virling credits each payment to a visit before it, by default the latest visit that was not Direct inside a 90-day lookback window, and you can switch the site to first touch to credit the visit that introduced the buyer; the digital products guide walks through the setup.
Marketplace sales or sales on your own site
The wordpress.org directory lists free plugins and themes only, so the paid version is sold somewhere else: on a theme or plugin marketplace that bills the buyer itself, or on your own site through Paddle, LemonSqueezy, Polar, Creem or Stripe. Virling only sees the second kind. A sale a marketplace bills never passes through your checkout, so it is missing from the report, while the click from the marketplace listing to your site still shows as a Referral visit. If you sell in both places, the report covers your own-site revenue, and the marketplace's own dashboard covers the rest.
License keys
Your provider or licensing system issues the key; Virling reads the payment, not the key. Activating a key on a client's site, moving it to another domain or checking it for updates is not a visit or a sale. What is credited is the payment that bought the license, from the visitor ID that reached checkout.
Demo and docs pages as landing pages
A theme buyer often lands on a live demo first, and a plugin buyer on a docs page that answers how to do one thing. Run the script on both. With data-site set to your domain, a demo on demo.example.com or docs on docs.example.com share the visitor ID cookie with the sales page, so a buyer who arrived from a search on the demo and paid a week later is credited to that search. Demos hosted on another domain set their own cookie and are not joined to the sale.
Where plugin buyers come from
Every session gets one channel from its first pageview. The places plugin and theme buyers come from land in different ones:
- Marketplace and free-version listings: wordpress.org and other directories are not on a known host list, so clicks land in Referral under their own domain. Comparing directories by paying customers shows how to tag listing links and read each one over 90 days.
- Your blog and docs: visits that start there keep the channel that brought them to the post, such as Organic search or AI. Pages on your own domain and its subdomains never change the channel.
- Newsletters: a link tagged
utm_medium=newsletteroremaillands in Email. - Social posts: clicks from known social hosts land in Social.
- Readme files, the WordPress admin screen and downloaded files: often no referrer and no tag, so they are Direct unless you tag the link.

How to tag each link
Point each link at your sales page, and give each place its own campaign. The channel follows the channel rules:
| Where a buyer clicks | How to tag it | Channel |
|---|---|---|
| Store listing, such as wordpress.org | utm_source= | Referral, with or without a referrer |
| Readme, on GitHub or in the download | utm_source= | Referral. Opened from a file with no tag, Direct |
| Inside the plugin: upgrade notice or settings screen | One campaign per place: utm_source= | Referral. With no referrer and no tag, Direct |
| Theme demo or docs on your domain | None. A subdomain such as demo. counts as the same site | The channel that brought the visitor to the demo or docs page |
| Marketplace listing of a paid version | utm_source= | Referral |
A tagged upgrade link is a source of its own: with the default model it takes the credit from an earlier visit by the same buyer. Switch to first touch to credit the visit that introduced them. More on listings: app marketplace revenue tracking.
Set it up in three steps
1. Add the script to your marketing site
Put the Virling tag on the site where buyers land and check out. On WordPress, use the Virling plugin or paste the tag in your theme's header; the walkthrough is in WordPress revenue tracking. With data-site set to your domain, docs on docs.example.com count for the same site and share the visitor ID cookie. See Add the script.
2. Tag the links in listings and readme files
Links in a free-version listing, a readme, an upgrade notice or a settings screen carry no useful referrer. Give each one utm_source and its own utm_campaign, or create a tracked link in Virling: a short URL that adds the tags for you and shows the clicks, visitors and revenue it brought. The Campaign tab then splits the listing from the readme and the upgrade notice.
3. Connect your payment provider
Pass the visitor ID into checkout and connect the provider with a read-only key. Payments from the last 90 days are imported on the first run, then new ones every minute, and refunds lower a payment's revenue.
- Paddle:
virling_vidin the transaction's custom data, passed ascustomDatawith Paddle.js. Docs. - LemonSqueezy: the visitor ID as checkout custom data; the script adds it to plain checkout links. See LemonSqueezy for plugins and themes. Docs.
- Polar: checkout links need no code; checkout sessions take it in metadata. Docs.
- Creem: the visitor ID in checkout metadata. Docs.
- Stripe: Payment Links get it from the script; Checkout Sessions take it as
client_reference_idor metadata. For templates and other downloads, see Stripe for digital products. Docs.
Yearly license renewals
A yearly license billed as a subscription renews without a visit. Virling marks the renewal and gives it the channel, referrer and campaign of the customer's first payment, so a listing that sold a license keeps the credit for every renewal. See Renewals. Merchant of record fees differ by provider; compare them with the merchant of record fee calculator. A buyer who lets a license lapse and later buys a new one as a one-time purchase is a new sale, credited from the visit that came before it.
Read the report: an example
A seller with a $60 license, sold on their own site, opens the last 90 days. The figures are illustrative only: no real plugin produced them and they are not a benchmark.
| Channel | Visitors | Sales | Revenue | Revenue per visitor |
|---|---|---|---|---|
| Organic search | 3,000 | 24 | $1,440 | $0.48 |
| Referral | 1,500 | 15 | $900 | $0.60 |
| Direct | 1,500 | 10 | $600 | $0.40 |
| 400 | 10 | $600 | $1.50 | |
| Social | 1,000 | 3 | $180 | $0.18 |
| Communities | 1,600 | 2 | $120 | $0.08 |
| Unattributed | - | 6 | $360 | - |
| Total | 9,000 | 70 | $4,200 | $0.47 |
To keep the arithmetic simple, nobody asked for a refund and each visitor belongs to one channel. Sales is shown only to make the example easier to follow; in the product, the Channels card carries visitors, revenue and revenue per visitor. Email has the fewest visitors of any channel and the highest revenue per visitor, so the newsletter is worth growing. Communities, the launch post, sent four times the visitors of Email and a fifth of the revenue. The Campaign tab splits Referral: the listing row is 900 visitors and $300, the upgrade-notice row is 400 and $540, and other links are 200 and $60. The notice sells more per visitor because those people already use the free version, so read it next to first touch before you cut back on the listing.
Why a license sale is Unattributed
A license sale is Unattributed when checkout got no visitor ID, most often from a checkout link placed in a readme, a WordPress admin notice or an email instead of on your sales page. On WordPress also test logged out, since the plugin skips administrators, and see Unattributed revenue for the other causes and fixes.
Open source, self-host or hosted
Virling is open source under AGPLv3; the code is on GitHub. Run it as one Rust binary on your own server, see the install docs, or use the hosted version.
Frequently asked questions
Why does a click from my wordpress.org listing show as Referral?
wordpress.org is not on the community, search, social or AI host lists, so a click from a plugin or theme listing lands in Referral and shows under its own domain in the Source tab. Add utm_source and utm_campaign to the link, or use a tracked link, to tell the listing apart from your support forum or readme.
How do I track links from inside the plugin, its readme or the dashboard of a free install?
A link opened from a WordPress admin screen, a readme or a downloaded file often arrives with no referrer, so it counts as Direct. Tag those links with utm_source and one utm_campaign per placement, or create a tracked link in Virling, and the visit keeps its source.
Are license renewals credited to the channel that sold the first license?
Yes, when the renewal is billed as a subscription by Paddle, LemonSqueezy, Polar, Creem or Stripe. Virling detects the renewal and copies the channel, referrer and campaign of the customer's first payment. A new one-time purchase by the same buyer is a new sale credited from its own visitor ID, except on Creem, which counts any later payment of a customer as a renewal.
Which payment providers work for plugin and theme sales?
Paddle, LemonSqueezy, Polar, Creem and Stripe, each with a read-only key. Pass the visitor ID into checkout. Plain Stripe Payment Links, Polar checkout links and LemonSqueezy checkout links on a page that runs the script get it added by the script itself.
Does it work if my marketing site runs on WordPress?
Yes. Add the script with the Virling WordPress plugin or in your theme's header. The plugin skips logged-in administrators by default, so test from a private window.
Can I link straight to checkout from an email or a post?
You can, but a checkout link opened from an email, a QR code or another site carries no visitor ID, and its payment shows as Unattributed. Point the link at your sales page instead, with a tracked link for each place, and put the checkout link on that page.
Does activating a license key count as a sale or a visit?
No. Virling counts the payment your provider reports; the key and its activations stay in your provider or licensing system. A site where the key is activated is not a visit unless someone opens a page on your domain.
How do I see what an affiliate or creator sold?
Open Partners, add a partner and the page it should open, and give them the short link Virling makes. Each partner link is ranked by revenue, with visitors, paying customers and refund rate. Copy report link gives the partner a read-only page with only their own numbers. Virling does not pay partners.
Full reference: Channels, Tracked links and Renewals in the docs. Pricing and the 14-day trial: pricing.
See which channel sold each license
Self-host it free, or use the hosted version with a 14-day free trial.
Related reading
- WordPress revenue tracking: which channel brought each sale
- Merchant of record fee calculator: Paddle, Polar, Creem fees
Integrations: Digital products, Paddle, LemonSqueezy, Polar, Creem and Stripe. Run it yourself: self-host.