Which privacy-friendly analytics shows revenue per visitor?
By Devendra Variya, co-founder of Virling. Published 2026-12-02.
Virling is privacy-friendly analytics that shows revenue per visitor. It stores no IP addresses, full user agents or full referrer URLs, sets one first-party cookie holding a random ID, can respect Global Privacy Control, and can run on your own server. It reads payments from your provider and shows revenue divided by visitors for every channel, source, campaign and page.
One trade-off is worth knowing up front: revenue per visitor by channel needs that one cookie, because the visitor ID is what links a payment to a visit. Without it, payments still count, but no channel gets them.
Set it up
- Add the script before
</head>. Adddata-respect-gpc, as in the tag below, and the script sends nothing for browsers with Global Privacy Control on. - Pick the visitor cookie mode in Site settings: Cookie to link every payment, or Until consent to start every visitor without a cookie and set it only when they accept. See the table below.
- Connect your payment provider with a read-only key where the provider allows one. Virling never creates, changes or refunds a payment.
- Pass the visitor ID at checkout. Stripe, Polar, Dodo Payments and Lemon Squeezy checkout links get it from the script. A checkout your server creates needs one field. See link checkout to visits.
- Read revenue per visitor. It is one of the five numbers at the top of the dashboard, and the per visitor column on every breakdown card: Channels, Pages, Location and Devices, with a chip that compares each row with your site average.
The script tag, on every page:
<script defer src="https://app.virling.com/v.js" data-site="yourdomain.com" data-respect-gpc></script>
Revenue per visitor, without the tracking baggage
Virling stores no IP addresses and sets one first-party cookie. Self-host it free, or use the hosted version.
What Virling stores
- For each event: the time, the path without its query string, the referrer host, UTM tags, the channel, the country, device type, browser name, operating system, browser language and a visitor and session ID.
- Not stored: IP addresses, full user agents, full referrer URLs, or anything a visitor types.
- The cookie,
virling_vid, is first-party, holds a random ID and lasts one year. Other websites cannot read it. - Self-hosted, events and payments stay on your server, and there is no telemetry.
The full list is in privacy and consent. Whether you need a consent banner depends on where you and your visitors are; that is a legal question, and these are facts, not legal advice.
Which mode gives you revenue per visitor
| Mode | Stored in the browser | Revenue per visitor by channel |
|---|---|---|
| Cookie | virling_vid for one year | Yes, when checkout carries the ID |
| Until consent | Nothing before consent, then virling_vid | For visitors who accept |
| Cookieless | Nothing | No. New payments are Unattributed |
In cookieless mode visitors are counted with a daily salted hash of the site, IP address and user agent, and the IP address is not stored. Payments still count toward revenue, but there is no ID to pass into checkout, so they cannot be credited to a channel or page. See cookieless mode and cookieless analytics and revenue.
Doing it without Virling
Revenue per visitor is revenue divided by unique visitors. Take visitors per channel from any traffic tool, tag your links with UTM parameters, copy the tags into your checkout's metadata, and add up revenue per channel from a payments export. Divide one by the other in a spreadsheet. The weak point is the join: the two tools count visitors differently, and buyers who return by another route land in the wrong row. For the formula and what a good number looks like, read revenue per visitor; for consent setups, read revenue tracking with a cookie banner.
Frequently asked questions
Does Virling store IP addresses?
Not for visitors. The IP address is used in memory to skip ignored addresses and to make the daily hash when there is no visitor ID, and it is not stored.
Can I see revenue per visitor without any cookie?
Site-wide revenue still counts, but per channel and per page, no: in cookieless mode new payments are Unattributed. For Stripe, Shopify and WooCommerce, a payment can be matched by email only to the visitor who identified that day.
Does it work with a consent banner?
Yes. Use the Until consent mode and call virling("consent") from your consent tool when a visitor accepts. Revenue per visitor then covers the visitors who accept.
Can I keep the data on my own server?
Yes. Virling is open source under AGPL and runs as one binary on your server, where events and payments stay.
See what each visitor is worth
Virling is open source under AGPL. Self-host it free, or use the hosted version; see pricing. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.