Attribution model calculator
Enter the channels a customer came through before paying, in order, and the payment amount. See how five attribution models split the same revenue between those channels, side by side. Everything runs in your browser.
Virling credits each payment with last non-direct (the default), first touch or last touch, chosen per site. Linear and position-based are shown here for comparison only. Instead of one journey you type in, Virling fills in these numbers per channel from your real payments, joining each payment to the visits before it. 14 days free.
Related: first-touch vs last-touch attribution for SaaS, what revenue attribution is, the ROAS calculator, the attribution setup generator and the attribution audit checklist.
How each attribution model splits the revenue
Every model starts from the same journey: the visits a customer made, oldest first, ending with the payment. They differ only in which visits get credit and how much.
- Last non-direct gives all the revenue to the latest touchpoint that was not Direct. If every touchpoint was Direct, the latest Direct one gets it.
- First touch gives all the revenue to the first touchpoint, Direct or not.
- Last touch gives all the revenue to the touchpoint right before the payment, Direct included.
- Linear splits the revenue equally:
credit per touchpoint = payment / number of touchpoints. - Position-based (40/20/40) gives 40% to the first touchpoint, 40% to the last, and splits the remaining 20% equally between the ones in the middle. With only two touchpoints, each gets 50%.
Linear and position-based count Direct like any other touchpoint. When a channel appears more than once in a journey, the calculator adds its shares together.
A worked example
The defaults above describe a customer who found you on Hacker News, came back from a Google search, clicked a link in your newsletter, then typed your URL and paid $100.
- Last non-direct skips the final Direct visit and gives $100 to Newsletter.
- First touch gives $100 to Hacker News.
- Last touch gives $100 to Direct.
- Linear gives $25 to each of the four touchpoints.
- Position-based gives $40 to Hacker News, $40 to Direct, and $10 each to Google and Newsletter.
Three channels can each claim the whole payment depending on the model. That is why a report should always say which model it uses, and why Direct almost never deserves full credit: people type a URL they already learned about somewhere else.
Three journeys under every model
These journeys are made up, not real customers, and every number is what the calculator above shows when you enter the same touchpoints and amount.
- SaaS trial. Someone finds a product in an AI assistant answer, searches for it on Google, returns from a LinkedIn post and then a newsletter link, and finally types the URL to start a free trial. With no more visits before it ends, the first charge is $90.
- Store order. A shopper clicks an Instagram post, finds the store again through a Google search, and orders for $120 after clicking an email.
- Agency client. An agency runs ads for a training company that sells a $600 course. One buyer first types the URL from a flyer, later clicks a Google ad, returns from a Facebook post, and buys after a Google search.
| Touchpoint | Last non-direct | First touch | Last touch | Linear | Position-based |
|---|---|---|---|---|---|
| SaaS trial, $90.00 first charge | |||||
| 1. AI assistant | $0.00 | $90.00 | $0.00 | $18.00 | $36.00 |
| 2. Google search | $0.00 | $0.00 | $0.00 | $18.00 | $6.00 |
| 3. LinkedIn | $0.00 | $0.00 | $0.00 | $18.00 | $6.00 |
| 4. Newsletter | $90.00 | $0.00 | $0.00 | $18.00 | $6.00 |
| 5. Direct | $0.00 | $0.00 | $90.00 | $18.00 | $36.00 |
| Total | $90.00 | $90.00 | $90.00 | $90.00 | $90.00 |
| Store order, $120.00 | |||||
| 1. Instagram | $0.00 | $120.00 | $0.00 | $40.00 | $48.00 |
| 2. Google search | $0.00 | $0.00 | $0.00 | $40.00 | $24.00 |
| 3. Email | $120.00 | $0.00 | $120.00 | $40.00 | $48.00 |
| Total | $120.00 | $120.00 | $120.00 | $120.00 | $120.00 |
| Agency client, $600.00 sale | |||||
| 1. Direct | $0.00 | $600.00 | $0.00 | $150.00 | $240.00 |
| 2. Google Ads | $0.00 | $0.00 | $0.00 | $150.00 | $60.00 |
| 3. Facebook | $0.00 | $0.00 | $0.00 | $150.00 | $60.00 |
| 4. Google search | $600.00 | $0.00 | $600.00 | $150.00 | $240.00 |
| Total | $600.00 | $600.00 | $600.00 | $600.00 | $600.00 |
- SaaS trial: last non-direct skips the typed URL and credits the newsletter. First touch credits the AI assistant, the only single-touch model here that gives it anything.
- Store order: the last visit came from a real source, so last touch and last non-direct agree on the email. Only first touch gives Instagram the whole order.
- Agency client: the ad the agency paid for sits in the middle, so it gets $0.00 under all three single-touch models, $150.00 under linear and $60.00 under position-based. First touch credits Direct, because nothing recorded the flyer. Reading the visits before the payment shows the ad without any split.
The calculator has no time limit: every touchpoint you type counts. In Virling only visits inside the lookback window do, so an early visit can drop out before any model runs. See how long a visit gets credit. For more on linear and position-based splits, read multi-touch attribution for a small business.
How to choose an attribution model
These are starting points, the same as in the model docs. If you are unsure, keep the defaults: last non-direct with a 90-day window.
- SaaS with a trial: last non-direct with a 90-day window, so a trial user who comes back by typing your URL is still credited to the channel that brought them. The window should be longer than the time from first visit to first charge, trial included.
- Store: last non-direct with a 30-day window when most orders follow within days of the first visit, or 60 or 90 days for expensive or seasonal products.
- Agency reporting to clients: last non-direct with a 90-day window on every client's site, so reports are comparable between clients.
- Sales-led B2B: first touch with a 365-day window, so the visit that introduced the buyer still counts after months of calls and demos.
Which model Virling uses
Virling offers last non-direct, first touch and last touch, set per site in the site settings, with last non-direct as the default. The lookback window is 30, 60, 90 or 365 days, 90 by default, and a payment with no visit left inside it is Unattributed. Changing the model or the window rebuilds attribution for every past payment of the site. Linear and position-based are not available in Virling yet; they appear in this calculator so you can compare. For when to pick first touch over last touch, read first-touch vs last-touch attribution for SaaS.
Attribution model calculator FAQ
What is the difference between last touch and last non-direct?
Last touch credits the visit right before the payment, even when it was Direct. Last non-direct skips Direct visits and credits the latest visit that came from a real source, falling back to Direct only when every visit was Direct.
Why is Direct handled differently?
A Direct visit has no referrer: a typed URL, a bookmark, or a link from an app that hides where it came from. People rarely type a URL they have never seen, so crediting Direct usually hides the channel that actually introduced them.
How does position-based attribution work?
It gives 40% of the revenue to the first touchpoint, 40% to the last, and splits the other 20% equally between the touchpoints in between. With two touchpoints, each gets half.
Which attribution model should I use?
Last non-direct suits most products, since it credits the channel that brought the customer back to buy. First touch shows which channels introduce people who later pay and fits longer buying cycles. Compare both before moving budget.
Can I use linear or position-based attribution in Virling?
Not yet. Virling credits each payment to one visit, using last non-direct, first touch or last touch. Linear and position-based are in this calculator for comparison only.
Does changing the attribution model change total revenue?
No. Every model divides the same payment, so the totals match and only the channels that get the credit change. In Virling, saving another model recomputes every payment of the site, and renewals follow the new credit of the customer's first payment.
Does the calculator use an attribution window?
No. It counts every touchpoint you type, however old. Virling only considers visits inside the lookback window, so leave out visits older than your window to compare the two.
See which channels actually bring revenue
These tools estimate. Virling measures: it links every visit to the payment it led to, so you see the customers and revenue each channel brings from your real numbers. 14 days free.