Revenue attribution for browser extensions
Virling joins each upgrade of your paid Chrome or Firefox extension to the visit that came before it. The path runs from a channel, such as a launch post, a search or a creator's video, to your site, then to your store listing, an install, and later an upgrade on a checkout page on your own domain. Virling shows which channel at the start of that path brought paying users, not just installs. Works with Stripe, LemonSqueezy, Polar, Creem and Dodo Payments. Open source, one Rust binary, or hosted.
An extension store tells you how many people installed, and your payment provider tells you who paid, but neither knows which post or search sent them. Virling keeps a visitor ID in a first-party cookie on your domain and matches it when that person later pays on a page of your site; the browser extension guide covers the setup step by step.
Your Chrome Web Store and Firefox Add-ons listing
Both stores give your listing a link to your own site, and that link is the one place inside the store you can tag. Give each store its own campaign, chrome-listing and firefox-listing, so the Campaign tab shows which listing sends people who later pay. The Chrome Web Store sits on a Google host, so a click from it with a referrer lands in Organic search next to real Google searches; the campaign is how you tell the two apart. Firefox Add-ons is not on a known host list and lands in Referral.
Why store installs carry no UTM tags
An install happens inside the store and never loads a page on your site, so there is no visit for tags to ride on. Tags on a link from your site to your listing are not kept either: the click is stored as an exit with the listing's origin and path, without its query string. The store does not pass anything back to your site after an install, so the first page Virling can see after it is one the extension opens on your domain.
From install to paid upgrade
- The first visit. Someone lands on your site from a launch post, a search or a tagged link. The visit gets one channel, source and campaign from its first pageview, and the visitor gets a
virling_vidcookie. - The store listing. A click from your site to your Chrome Web Store or Firefox Add-ons listing is recorded as an exit, with the link's origin and path.
- The upgrade page. The upgrade button in your extension opens a pricing or upgrade page on your domain in a new tab. In the same browser the cookie is still there, so the visit carries the same visitor ID.
- The payment. Checkout carries the visitor ID, and Virling credits the payment to one of that visitor's sessions in the lookback window: 30, 60, 90 or 365 days, 90 by default.

With the default model, last non-direct, a Direct visit right before the payment does not take the credit from the launch post or search that came before it. Leave UTM tags off the link your extension opens: a tagged visit is not Direct, so it would take the credit itself. First touch and last touch are the other models.
What links and what does not
- Links: visits to your own site, and checkouts opened from pages on your domain that run the script. The visitor ID is first-party, so subdomains such as
app.yourdomain.comshare it. - Does not link: the install itself, and anything inside the extension's own pages. The script keeps events only from pages on your domain and its subdomains, so put it on your site, not in the extension.
- Does not link: an upgrade in another browser or on another device, which has its own cookie and a new visitor ID.
Tagging the links around your extension
Point every post and listing at your landing page, never straight at the store or at checkout, and send the store link from there. The channel rules then give each visit:
| Where a buyer clicks | How to tag it | Channel |
|---|---|---|
| Store listing, the website link | One campaign per store: utm_source=, or firefox- and firefox- | Organic search when the referrer is chromewebstore., since Google hosts count as search. Referral for Firefox Add-ons, and for either store when there is no referrer |
| Readme, such as on GitHub | utm_source= | Referral |
| Inside the extension, the upgrade button | No tags. They would give the upgrade visit a source of its own | Direct when it starts a new visit, so with the default model an earlier tagged, search or referral visit keeps the credit |
| Launch post | The site's domain and one campaign per post: utm_source= | Communities for Product Hunt, Hacker News and Reddit. Social for X, LinkedIn and YouTube |
For other app stores and their listing links, see app marketplace revenue tracking.
Payment providers for the upgrade
- Stripe: Payment Links on
buy.stripe.comneed no code: the script addsclient_reference_id. For Checkout Sessions, pass the visitor ID asclient_reference_id. Step by step: extension revenue tracking with Stripe. - LemonSqueezy: checkout links need no code: the script adds the visitor ID as checkout custom data. Virling registers a webhook on each store to read it, which needs a public https address.
- Polar: checkout links on
buy.polar.shneed no code; checkout sessions take the visitor ID in metadata. - Creem: pass the visitor ID in checkout metadata. Virling adds one
checkout.completedwebhook to read it. - Dodo Payments: static payment links need no code; checkout sessions take the visitor ID in metadata.
Checkout links must be normal links on a page of your site that runs the script. Each provider's payments from the last 90 days are imported on the first run, then new ones every minute. If you sell a subscription, renewals keep the channel of the first payment; see Virling for SaaS. To see how many trial users each channel turns into paying users, try the trial to paid calculator.
Read the report: an example
Take an extension with a $30 yearly upgrade, over 90 days. Every figure below is invented to show how the report reads; none comes from a real extension, and it is no benchmark.
| Channel | Visitors | Upgrades | Revenue | Revenue per visitor |
|---|---|---|---|---|
| Communities | 4,000 | 9 | $270 | $0.07 |
| Organic search | 1,100 | 11 | $330 | $0.30 |
| Direct | 900 | 18 | $540 | $0.60 |
| Social | 800 | 12 | $360 | $0.45 |
| Referral | 500 | 5 | $150 | $0.30 |
| 200 | 4 | $120 | $0.60 | |
| Unattributed | - | 6 | $180 | - |
| Total | 7,500 | 65 | $1,950 | $0.26 |
No upgrade was refunded and every visitor sits in a single channel, which is why the totals match. The dashboard's Channels card has no Upgrades column; it lists visitors, revenue and revenue per visitor. Communities, the launch post, sent more than half the visitors and $270. Social, a creator's video, sent a fifth as many visitors and $360, so the video is the one to repeat. In the Campaign tab, the chrome-listing row is 300 visitors and $90, which is part of Organic search and did not come from a Google search. Direct earns the most, but do not read it as people typing your address: someone who installed from the store search first reaches your site through the upgrade button, and that visit is Direct. Open a Direct payment, and a journey that starts on your upgrade page is one of these.
Why an upgrade is Unattributed
An upgrade shows as Unattributed when its checkout carried no visitor ID, and with extensions the usual cause is a button that opens checkout itself, where the script cannot add the ID. Open an upgrade page on your domain instead; the other causes, such as a blocked script or cookieless mode, are listed in Unattributed revenue.
Open source, hosted or on your server
Virling is open source under AGPLv3, with the code on GitHub. Run it on your own server as one binary, as the install docs describe, or use the hosted plan.
Frequently asked questions
Can Virling track installs from the Chrome Web Store or Firefox Add-ons?
No. Virling tracks visits to your own site and the payments made from it. A click from your site to your store listing is recorded as an exit, but the install itself happens in the store, which Virling does not see.
Can the upgrade button inside my extension be attributed?
Yes, when it opens a checkout page on your own domain that runs the Virling script. The visitor ID cookie belongs to your domain, so a user who visited your site before installing arrives with the same ID, and the payment is credited to their earlier visit within the lookback window.
What happens to users who installed straight from a store search?
They never visited your site before installing, so the first visit Virling sees is the upgrade page the extension opened. The payment is credited to that visit, not to the store search that led to the install.
Which payment providers work?
Stripe, LemonSqueezy, Polar, Creem and Dodo Payments. Checkout links on buy.stripe.com, buy.polar.sh, LemonSqueezy and checkout.dodopayments.com get the visitor ID from the script with no code; Creem checkouts and checkout sessions you create on your server take it in metadata.
Is Virling open source?
Yes. Virling is open source under AGPLv3. You can run it yourself as one binary with embedded storage, or use the hosted version.
Should I add UTM tags to the upgrade link in my extension?
No. Tags would mark the upgrade visit with a source of its own, so it would no longer be Direct and, with the default model, would take the credit from the post or search that came before it. Tag the links that lead to your landing page instead, with one campaign per store listing and one tracked link per post.
Does an extension update or reinstall count as a visit?
No. Updates and reinstalls happen in the browser and the store, not on your site, so Virling records nothing until the extension opens a page on your domain. If it opens a what's new page there after an update, that page view is a visit like any other.
How do I check that an upgrade is credited?
Create a new browser profile, load your extension in it and open your landing page from a tagged link with utm_source=test and utm_medium=test. Click the upgrade button and pay in your provider's test mode. After a minute the payment should show the test source instead of Unattributed. A private window would not do: it has its own cookies, and extensions are usually off there.
Full reference: Set up a browser extension, Add the script, Link checkout to visits and Model and lookback window in the docs. Plans and the free trial: pricing.