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

How attribution works

Attribution answers one question per payment: which visit brought it. Virling credits exactly one session per payment.

Sessions

Pageviews and goals from one visitor form a session until there are 30 minutes without an event. The next event after that starts a new session. A session also ends early when:

  • The visitor left the site, with every tab of it closed, and comes back after the return threshold in Site settings: 1, 5 or 30 minutes, 5 by default. A quicker return stays in the session and shows as “Came back” on the visitor’s timeline.
  • A page loads with UTM tags different from the session’s.

A reload, a click from another page of the site, a Back to a page other than the one the visitor left from, and a return from checkout or sign-in never start a new session. Checkout and sign-in pages are Stripe, Dodo Payments, Polar, LemonSqueezy and Paddle checkouts, Google and Apple sign-in and GitHub login, plus the Same-visit domains in Site settings. They are never a session’s referrer either.

A session is described by its first pageview: its channel, referrer, campaign, landing page, country and device. That first pageview is the session’s touch.

Matching a payment

After every sync round, and when you change the model or window, Virling rebuilds attribution for the site:

  1. Take the payment’s visitor ID, which checkout carried. See Link checkout to visits.
  2. Find that visitor’s sessions that started before the payment and inside the lookback window, 90 days by default.
  3. Pick one session with the site’s model: the latest session that was not Direct, by default.
  4. Credit the whole payment, after refunds, to that session’s channel, referrer, campaign and landing page.

Renewals skip steps 1 to 3 and take the attribution of the customer’s first payment.

A payment with no visitor ID, or with no session in the window, is Unattributed. It still counts toward revenue.

Where you see it

  • Dashboard at /app/yourdomain.com: revenue, visitors and revenue per visitor, broken down by channel, referrer, landing page and country.
  • Payments at /app/yourdomain.com/payments: every imported payment with its credited channel, or Unattributed.
  • Payment journey: open a payment to see the payer’s sessions in the window before it, oldest first, with the credited session marked.

Rebuilds

Attribution is a derived table. It is rebuilt from events and payments, so changing the model or window recomputes history for the whole site. Nothing is lost by switching back and forth.

Connect your payment provider and see revenue by channel.

Start free
Was this page helpful?No Edit this page on GitHub