virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
integrations / polar for open source

See which channel brings the people who pay for your open source project on Polar.

For open source maintainers who sell licenses, hosted plans or paid support through Polar. Virling shows which channel brought each paying customer: your GitHub README, your docs, Hacker News, a newsletter or a package registry. Virling is open source too, under AGPL, hosted or self-hosted.

Start free See the demo

Stars, downloads and Polar's order list tell you how popular a project is and who paid. None of them tells you which link a paying customer followed to your site. Virling joins each Polar order to the visits of the person who checked out, so you can see which of your own placements sell.

Setup is the same as for any Polar seller: connect an organization access token and keep your checkout links on pages that run the Virling script. Token scopes, the first import, refunds, renewals and sandbox testing are covered on the Polar integration page.

Which visits to tag

A maintainer's buyers rarely start on the pricing page. They read the README, skim the docs, update to a new release or look the package up on a registry, and only then follow a link to your site. Each of those places can be its own row in your report if the link carries a tag.

The channel is read from the first page of a visit. A utm_medium of email, newsletter or a paid value decides first, then the referrer, then utm_source. So for most of these places a tag names the placement and covers clicks with no referrer, and the referrer decides the channel.

Where the link isReferrer that arrivesWhen to add a tagChannel
Repository READMEgithub.com, without the page the link was onAlways, with its own utm_campaign. Links copied from a README often arrive with no referrer. See GitHub revenue trackingReferral, under its own domain. With no referrer and no tag, Direct
Release notesgithub.com, the same as the READMEAlways, with a different utm_campaign, or one per release, so release traffic does not merge with the READMEReferral, under its own domain. With no referrer and no tag, Direct
Package registry pagenpmjs.com, pypi.org or crates.io, usually without the packageAlways, in the package README and the homepage field, which change with your next release. See npm revenue trackingReferral, each under its own domain. With no referrer and no tag, Direct
Docs siteNone that counts: referrers from your own domain and its subdomains are ignoredNot between your own pages, where new tags start a new visit. Tag links only from docs on a domain that is not yours. See docs revenue trackingThe channel that brought the reader to the docs, with that docs page as the landing page. Docs on another host are Referral
Community postsnews.ycombinator.com, reddit.com, lobste.rs or dev.toWhen you want to tell two posts apart, or the link opens in apps: utm_source=hackernews keeps a visit with no referrer out of DirectCommunities

A small tagging plan is enough. Pick one utm_source per place and one utm_campaign per link, and keep them the same from release to release:

README:         https://yourproject.dev/?utm_source=github&utm_campaign=readme
Release notes:  https://yourproject.dev/?utm_source=github&utm_campaign=release-notes
npm package:    https://yourproject.dev/?utm_source=npm&utm_campaign=package-readme
Newsletter:     https://yourproject.dev/?utm_source=newsletter&utm_medium=newsletter&utm_campaign=2026-12

Links between your docs and your pricing page stay untagged. Readers who land on a docs page show it as their landing page in the Pages card, so you can still see which docs pages come before a sale.

Read revenue per source for a project

Open the project's site in Virling and pick a range long enough to hold a few sales, such as the last 90 days.

  1. Source tab. On the Channels card, the Source tab splits Referral into github.com, each registry and every other site, with visitors, revenue and revenue per visitor for each.
  2. Campaign tab. The Campaign tab shows the same numbers for each tag, so the README and the release notes get separate rows even though both come from GitHub.
  3. Paying customers. Click a row to filter the whole page by it. The New customers number at the top then counts the first-time buyers credited to that source.
  4. One sale at a time. On Payments, open an order to see the visits before it, with the credited one marked.

Each payment is credited to one visit in the lookback window, 90 days by default. The default model takes the latest visit that was not Direct, so someone who found you on Hacker News and came back by typing your URL is credited to Hacker News. First touch, which credits the visit that introduced them, is one setting away.

An example: four sources for one project

These numbers are made up, to show how to read the report. They are not from a real project and not a benchmark. A maintainer sells a $60 license for one project, every buyer pays once, nothing is refunded, and these four sources are the only ones in the range:

SourceVisitorsPaid customersRevenueRevenue per visitor
GitHub README2,40012$720$0.30
npm package page9006$360$0.40
Hacker News4,0004$240$0.06
Newsletter3005$300$1.00
Total7,60027$1,620$0.21

Each visitor and each customer is counted under one source, so the rows add up. Hacker News sent more than half the visitors and under a sixth of the revenue. The README brought the most customers, and the npm page, with fewer visitors, earned more per visitor than the README did. The newsletter was smallest and earned the most per visitor, so it is worth sending more often. Before you write off Hacker News, read the same range with first touch: developers who met the project there and came back later through the README count as the README under the default model.

Open source, like your project

Virling is open source under AGPLv3, and the code is on GitHub. Use the hosted service, or self-host it with every feature and keep your visitor and payment data on your own server.

Polar for developer tools covers renewals and trials in more depth. Polar UTM tracking shows how to tag links so each order shows its campaign.

Frequently asked questions

Which channel brings my Polar customers?

Connect Polar to Virling with a read-only organization access token and pass the visitor ID at checkout. Each payment is then credited to one visit before it, with that visit's channel, referrer, campaign and landing page. The default model credits the latest visit in the last 90 days that was not Direct.

How do GitHub and package registry visits show up?

A click from github.com, npmjs.com, pypi.org or crates.io lands in the Referral channel under its own domain, because none of those hosts is on a known list. Tag the link with utm_source and utm_campaign to see which README, release or package page it was.

Should I tag links inside my docs?

No, not between pages on your own domain, because a new tag starts a new visit and hides where the reader came from. The docs page shows as the landing page instead. Tag links only from docs hosted on a domain that is not yours.

How do I tell the README apart from release notes?

Both arrive from github.com, so give each its own utm_campaign, such as readme and release-notes. The Campaign tab of the Channels card then shows visitors and revenue for each.

Is Virling itself open source?

Yes. Virling is open source under AGPLv3, with the code on GitHub. Use the hosted service, or self-host it with every feature.

Full guides: Polar in the docs and Channels.

Start free See the demo