virling Docs
v0.3.0 virling.com GitHub Start free
virling Docs
docs/v0.3.0

See which visits turned into payments.

Virling ties every visit to the payment that followed. Start on hosted Virling with nothing to install, or run one binary on your own server. Either way, add a script of about 2 KB and connect a read-only payment key.

1
Start the 14-day free trial
Sign in at app.virling.com with your email, then add a card in Account settings. Cancel before day 15 and nothing is charged.
2
Add your site
Enter your domain and timezone on the setup screen. There is no server to install.
3
Paste the script before </head>
<script defer src="https://app.virling.com/v.js"
  data-site="yourdomain.com"></script>
4
Connect a payment key
Pick Stripe, Dodo Payments, Polar, LemonSqueezy, Creem, RevenueCat, Paddle, WooCommerce or Shopify, paste the key and click Connect and backfill.
Self-hostQuickstart
1
Start the server
docker run -d --name virling -p 8080:8080 \
  -v virling-data:/data \
  ghcr.io/virling/virling:latest serve --app
2
Add your site
docker exec virling virling add-site \
  yourdomain.com --owner you@example.com
3
Paste the script before </head>
<script defer src="https://YOUR-HOST/v.js"
  data-site="yourdomain.com"></script>

Pick your setup

The steps for your kind of business, hosted or self-hosted.

SaaS product

Connect billing, pass the visitor ID into checkout, and track signups, trials and revenue by channel.

Online store

Shopify or WooCommerce: store the visitor ID on each order and read orders and revenue by channel.

Agency

A site per client, each with its own script and payment connection, and a branded client report.

Merchant of record

Pass the visitor ID through Paddle, LemonSqueezy, Polar, Creem or Dodo Payments checkout.

Guides

Everything Virling does today, in the order you set it up.

Quickstart

From an empty server to your first attributed payment in six steps.

Install

The Docker image, release binaries for Linux and macOS, or a build from source.

Add the script

One tag, about 2 KB gzipped. Pageviews, UTM tags, referrers, route changes and goals.

Connect payments

Read-only keys where the provider allows one. The last 90 days are imported (60 for Shopify, one-time purchases only for RevenueCat), then synced every minute, or by webhook for RevenueCat.

Checkout attribution

Pass the virling_vid visitor ID into checkout so payments match visits.

How attribution works

Sessions, channels, which visit gets the credit, and renewals.

Configuration

Every server flag and VIRLING_ environment variable, with defaults.

Self-hosting ops

Reverse proxy, sign-in email, backups and upgrades.

Pencil sketch of a single server holding Virling and its data

One binary on your server

Events live in embedded DuckDB and settings in SQLite, in one data folder next to the binary. No Postgres, ClickHouse or Redis.

  • Linux x86_64 and arm64, macOS, Docker
  • Payments from nine providers, with webhooks for LemonSqueezy, Creem and RevenueCat
  • Visitor IPs are never stored