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.
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 is | Referrer that arrives | When to add a tag | Channel |
|---|---|---|---|
| Repository README | github., without the page the link was on | Always, with its own utm_. Links copied from a README often arrive with no referrer. See GitHub revenue tracking | Referral, under its own domain. With no referrer and no tag, Direct |
| Release notes | github., the same as the README | Always, with a different utm_, or one per release, so release traffic does not merge with the README | Referral, under its own domain. With no referrer and no tag, Direct |
| Package registry page | npmjs., pypi. or crates., usually without the package | Always, in the package README and the homepage field, which change with your next release. See npm revenue tracking | Referral, each under its own domain. With no referrer and no tag, Direct |
| Docs site | None that counts: referrers from your own domain and its subdomains are ignored | Not 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 tracking | The channel that brought the reader to the docs, with that docs page as the landing page. Docs on another host are Referral |
| Community posts | news., reddit., lobste. or dev. | When you want to tell two posts apart, or the link opens in apps: utm_ keeps a visit with no referrer out of Direct | Communities |
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.
- 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. - 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.
- 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.
- 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:
| Source | Visitors | Paid customers | Revenue | Revenue per visitor |
|---|---|---|---|---|
| GitHub README | 2,400 | 12 | $720 | $0.30 |
| npm package page | 900 | 6 | $360 | $0.40 |
| Hacker News | 4,000 | 4 | $240 | $0.06 |
| Newsletter | 300 | 5 | $300 | $1.00 |
| Total | 7,600 | 27 | $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.