virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
blog / 2026-11-17

Attribution window: how long a visit gets credit

By Devendra Variya, co-founder of Virling. Published 2026-11-17, updated 2026-11-25.

An attribution window, also called a lookback window, is the number of days before a payment in which a visit can earn credit for it. Visits inside the window are candidates for the credit; visits older than the window are ignored. A short window credits only recent visits, so it favours the channels that close. A long window reaches back to the visits that first introduced the customer. Pick a window longer than most of your customers take to pay. Virling uses 90 days by default and offers 30, 60, 90 or 365.

How the window and the model work together

The window decides which visits are considered. The attribution model then picks one of them. Under last non-direct, the latest visit in the window that was not Direct gets the credit. Under first touch, the earliest visit in the window gets it. So first touch never reaches past the window: with a 30-day window, the first touch is the first visit in the last 30 days, not the first visit ever. For the two models side by side, see first-touch or last-touch attribution for a SaaS. Both are defined in the revenue attribution glossary.

An attribution window example

This journey is made up to show the effect. A visitor on one browser:

  • Day 1: finds you through a tagged podcast link
  • Day 40: comes back from a tagged newsletter link
  • Day 62: types your URL
  • Day 76: types your URL again and pays for the first time, right after that visit

The window counts back from the payment on day 76. Each cell under a model is the channel that gets the whole payment.

WindowReaches back toVisits insideLast non-directFirst touchLast touch
30 daysDay 46Days 62 and 76DirectDirectDirect
60 daysDay 16Days 40, 62 and 76Email (newsletter)Email (newsletter)Direct
90 daysBefore day 1All fourEmail (newsletter)Referral (podcast)Direct

At 30 days every visit inside is Direct, so last non-direct falls back to the latest Direct visit. At 60 days the newsletter is inside, and at 90 days the podcast is too, which only first touch credits. Last touch credits the day 76 visit in every window.

Same customer, same payment, three different answers. A window shorter than the buying cycle hands the credit to the last few visits and hides the channels that started the journey. When visits are spread over days, they are also often spread over devices, and a visit on a phone is not in the window of the laptop that pays; see cross-device attribution. Ad platforms count with windows of their own, one reason Meta Ads purchases do not match Shopify orders. To try other journeys and models, use the free attribution model calculator.

To see how far back your own buyers reach, Virling's Time to pay card shows what share of each channel's new customers paid within 1, 7 and 30 days of their first visit, once the channel has three first payments in the range.

Start free trial See the demo

What a short or long window does

  • Short window: credits recent visits only. Good when people buy soon after they find you. Payments whose visits all fall outside it have no source. A retargeting click can also become the earliest visit left; see retargeting revenue tracking
  • Long window: keeps early visits in play, so first touch and slow channels such as podcasts, search content and newsletters keep their credit. Under last non-direct it mostly matters when the recent visits were all Direct

Picking a window for a SaaS with a trial

The clock runs from the visit to the payment, and a trial sits in between. A visitor who reads for two weeks and then takes a 14-day trial pays about a month after the first visit. Add the trial length to the time people spend before they sign up, then pick the next window up. For most SaaS products with a trial, the 90-day default is a sensible start. Use 365 days for annual plans sold to teams who take months to decide.

Picking a window for a store

Many store orders happen within days of the first visit, and 30 days covers them. Expensive items, gifts bought ahead of a season, and products people compare for weeks need 60 or 90 days. If you are unsure, keep 90 and check whether a shorter window changes the answer.

Base it on your own time to pay

The best guide is how long your own customers take. Measure the median days from first visit to first payment, per channel, as in how long a visitor takes to become a customer. Choose a window comfortably longer than that median, so the slow channels are not cut off. The Path to purchase card on the Payments page gives that median for your first payments, with the visits before paying; see how many visits a customer makes before paying.

How to set the window in Virling

  • Open site settings at /app/yourdomain.com/settings
  • Choose the lookback window: 30, 60, 90 or 365 days. The default is 90
  • Choose the model: last non-direct (the default), first touch or last touch
  • Save. Virling rebuilds attribution for every payment of the site, history included, and the dashboard shows the result on the next page load

Payments with no visit inside the window show as Unattributed and still count toward revenue. If many payments land there, try a longer window. With Stripe, Polar, Dodo Payments, Paddle, Creem and RevenueCat, Virling also records a free trial start and credits later charges from the visits before the trial started. Details are in the model and lookback window docs.

Frequently asked questions

What is an attribution window?

The number of days before a payment in which a visit can earn credit for it. Visits older than the window are ignored.

Is an attribution window the same as a lookback window?

Yes. Both names mean how far back from a payment the attribution model looks for visits to credit.

What attribution window should a SaaS with a free trial use?

One longer than most customers take from their first visit to their first charge, trial included. With a 14-day trial, 60 or 90 days is a safer start than 30.

What attribution window should an online store use?

Stores where people buy within days can use 30 days. Expensive or seasonal products that people think about for weeks need 60 or 90.

What happens to a payment with no visit inside the window?

In Virling it is Unattributed. It still counts toward revenue, but no channel gets the credit.

Does changing the window change past reports?

In Virling, yes. Saving a new window rebuilds attribution for every payment of the site, history included, so you can compare windows and switch back.

Why did Direct grow after I shortened the window?

Under last non-direct, a shorter window can leave only Direct visits inside, and then the latest of them is credited. Under first touch, Direct grows when the earliest visit left in the window was Direct. See the model and lookback window docs.

Does the window count back from the payment or from the start of the trial?

In Virling, from the payment, or from the start of the free trial when the payment has no visitor ID of its own. See visits outside the window in the docs.

See which channel gets credit under each window

Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.

Start free trial See the demo