When the purchase lands days after someone sees a variant, the attribution window decides who wins. In the example below the same test reads +2.4% after one session and +12.5% after a week. Set that window after you have peeked at the results and you can talk yourself into almost any conclusion.
The decision is made before the lift
The delay itself is harmless. A purchase that lands on day five can lift a weak-looking variant or wipe out a promising one, and that is how the journey works. Trouble starts when the attribution rule is picked after the numbers are visible, because from that moment the measurement becomes part of the treatment.
So write the rules down first. Decide who is counted, which visit starts the clock, what counts as a conversion, and how many days users get to convert. Lock these rules before you look at the lift. Then the result tells you what the variant did over an agreed period, and not which report view happens to look best. Delayed feedback is a known problem in production systems too. Olivier Chapelle's KDD 2014 paper on display advertising at Criteo modeled the conversion delay explicitly, because a naive cut-off systematically undercounts recent exposures.
This matters most where people take their time: a considered checkout, a free trial that turns into a paid plan, an account that needs approval, any flow where users leave and come back. A similar problem appears when your data simply arrives late. On a dashboard the two delays look the same, but they need different fixes. The first is about how users decide. The second is about when your data systems find out. Only the first belongs inside the conversion window.
Three clocks govern a delayed outcome
To keep those two delays apart, picture three clocks running under the test. The first decides who gets into the test at all. The second records when a user first saw their variant. Call that moment the index exposure: it is the start point. The third clock counts the time from the index exposure to the purchase. There is also a fourth timestamp: when the event reached your database. It belongs to the data team, but mixing it up with the other three can spoil the analysis.
For a user-level conversion metric:
Conversion Rate(W) = users with at least one qualifying conversion within W / eligible exposed users
Anchor W to each user's index exposure, never to the report date. A Friday report including conversions through Friday gives Monday users three more days to convert than Thursday users. If treatment happened to enroll more users early in the week, it gets a head start that has nothing to do with the product.
The index exposure needs a fixed rule. The first exposure is usually the safest choice. It keeps the original random split intact, and every user gets one start time. Log later visits if you want to study them, but do not restart the clock when someone comes back. Otherwise frequent visitors get extra chances to count, and you end up measuring how often people visit instead of what the variant did.
One cohort, four windows, four lifts
How much can the window move the headline number? A made-up example shows it. Each arm has 10,000 users. A conversion is a completed purchase, and the clock starts at the first exposure. No user sees both variants. Each row below counts different users, grouped by when they made their first purchase, so you can add the rows up to get running totals.
| Lag from index exposure | Control conversions | Treatment conversions | What the bucket can indicate |
|---|---|---|---|
| Same session | 420 | 430 | Immediate response to the experience |
| Days 1-2 | 180 | 230 | Return intent or short decision delay |
| Days 3-7 | 120 | 150 | Deliberation that still fits a weekly window |
| Days 8-14 | 100 | 105 | Longer-cycle outcomes or delayed reporting |
| Total through day 14 | 820 | 915 | All observed conversions in the example |
Now read the same cohort through four windows fixed in advance, with relative lift defined as (treatment rate - control rate) / control rate. Same-session credit gives control 4.20% and treatment 4.30%: 0.10 points, a slim +2.4%. A two-day window reads 6.00% against 6.60%: +0.60 points, +10.0%, the point where return behavior starts to matter. The seven-day window reads 7.20% against 8.10%: +0.90 points, +12.5%. Fourteen days reach 8.20% against 9.15%: +0.95 points, though relative lift eases to +11.6% because the control base has grown too.
The pattern matters more than the largest percentage. Most of the treatment difference arrives on days 1-7 and very little on days 8-14. That fits a variant that helps users come back and finish a purchase they had already started. The bigger later lift doesn't prove the variant caused every return; it shows the answer depends on how long you watch.
If extra conversions appear only in a long, erratic tail, check three things: whether the test changed timing, whether another release coincided with the cohort, and whether late data landed unevenly by day. A cumulative curve per arm tells you far more than the final rate alone.
Two cases need care. Say you agreed on seven days, the seven-day result is unclear, and the lift only shows up at day 14. Then the honest verdict is still "unclear". The 14-day number is a reason to plan the next test around a longer buying cycle. It does not change the verdict of this one. In the second case the variant lifts early purchases, but the two curves meet later. That means it made people buy sooner, and not more. Buying sooner can still help cash flow or the sales team, but it is not extra conversion. Write that plainly in the decision memo.
Session and user credit answer different questions
People often argue about session-level credit, user-level credit and a fixed window as if they were rivals. They answer different questions. Session or user decides who gets the credit for a purchase. The window decides how long you keep watching. In the table, the session view and the seven-day user view differ by a factor of nine in absolute lift (0.10 against 0.90 points), and both are arithmetically correct.
A session metric suits a within-session treatment, such as checkout layout or form validation. It is a poor primary outcome when normal journeys include later returns on another device. A user-level metric joins a later qualifying event to the assigned user and captures that return when identity resolution is reliable.
That condition deserves a number. A session may use an anonymous identifier while a purchase uses an account identifier. If only 70% of returning purchasers can be matched back to their first exposure, user-level attribution undercounts the return path, and it undercounts more in whichever arm encourages device switching. Measure match coverage by arm. A treatment may look weaker because it changes login behavior, while purchase intent is untouched.
"User-level result" is incomplete without a window. A deduplicated user conversion through the current calendar date can still have unequal follow-up. State the metric precisely: user-level conversion within seven days of first exposure, using event timestamp. An analyst who did not run the experiment can then reproduce it.
Open cohorts and late data manufacture false certainty
Even the right window misleads while users are still arriving. A user who saw the variant yesterday has had one day, not 14, to buy. Analysts call this right-censoring: that user's window has not closed yet. Counting the person as a non-buyer drags the rate down. Dropping such users unevenly between the arms is even worse.
So base the main result only on users whose window has fully closed. For a seven-day window, that means users who first saw the variant at least seven days ago. If your data tends to arrive late, add a few days of buffer on top, agreed in advance. As a formula, a user counts only if t0 <= T - W - G, where t0 is their start, T is today, W is the window and G is the buffer. The buffer is there for late data. It does not give users a longer window.
Keep the time of the purchase apart from the time the data arrived. An order placed on Tuesday and loaded on Thursday belongs to Tuesday. If it arrives after you froze the data, log it as late. Once the team has acted on the result, do not quietly rewrite it, unless you agreed upfront that the result was provisional. A later refresh can show how much the frozen number moved, and whether the change comes from one source, one platform or one arm.
Track late data on its own. Next to the main result, report how many purchases arrived after the buffer, how late they were, and whether lateness differs by arm, device, region or source. A small, even trickle of late data rarely changes the comparison. A spike in the treatment arm alone usually means a tracking or delivery bug. Rule that out before anyone credits the product. A surprisingly exciting number is more often a data problem than a discovery, and late data is a common cause. Save the frozen dataset, the query version, the exposure rule and the decision date. Without them, every rerun gives a new answer and nobody can explain why.
Business status can also be unsettled: an authorization, application or payment attempt may not be final. Define whether the primary outcome is an accepted transaction, a settled transaction or another durable milestone. If refunds or reversals matter, track them as a guardrail with a later window rather than changing the winning variant's definition.
Write the contract before enrollment
Pre-registration prevents an analyst from trying five plausible windows, three attribution units and a favorable segment until a result persuades. With four windows and two units, the table above already offers eight readings. Picking the best of eight windows is the same mistake as peeking at a running test, moved from the time axis to the definition axis: every extra reading is one more chance for noise to cross the significance line, and the nominal 5% false-positive rate stops meaning 5%. Put the versioned contract in the experiment ticket, analysis repository or decision memo before enrollment.
Here is what the frozen rules look like for this checkout test:
- Who is in: new users who start checkout and get a valid variant.
- How users are split: per user. The clock starts the first time a user sees their variant.
- What counts: at least one completed purchase within seven calendar days of that first view.
- How credit is given: per user, across sessions and devices wherever you can recognize the person.
- Who is analyzed: only users with seven full days behind them, plus two extra days for late data.
- Late data: freeze the main extract, then publish a refresh check once the two extra days are over.
- Side checks: refund rate and support contacts are guardrails, metrics that must not get worse. Channel and device breakdowns are for diagnosis only and cannot change the main result.
Also name the one comparison and window you will test statistically. A confidence interval only keeps its promise (for example, "95% sure") when the metric was chosen in advance. If you pick the metric after looking, the interval still describes the data, but that promise no longer holds. If the business has to decide before all windows close, call the result directional and say what share of users have not finished their window yet. An early number is only a preview.
Longer windows buy completeness with calendar time
A fixed window should cover the meaningful delay between exposure and outcome while leaving enough mature users for a timely decision. Historical lag distributions from the same product guide the choice before launch, using a stable conversion definition and a comparable population. A window borrowed from another journey can mislead even when convenient.
The cost of each extra week is easy to put in numbers. Suppose the test enrolls 1,000 users per arm per day, so 10,000 per arm take ten days (illustrative). With a seven-day window and two days of grace, the last cohort matures on day 19. A 14-day window pushes the readout to day 26. In the table that extra week moves absolute lift from 0.90 to 0.95 points. If treatment is the true winner, each week of delay keeps half of the 2,000 daily users on control: roughly 7 × 1,000 × 0.009, or 63 lost purchases.
The useful decision rule compares the arms with each other. In the table, days 8-14 hold 12.2% of control's 14-day conversions and 11.5% of treatment's. The late tail is nearly the same share in both arms, so the seven-day window ranks the variants exactly as the 14-day one does. If historical data or an A/A test shows the late share differing between arms by more than a couple of points, or if the decision needs the absolute level (a revenue forecast, a payback model), take the longer window and accept the wait.
The commercial question shapes the rule too. For checkout, seven-day user-level purchase may fit the journey. For a feature driving one immediate action, same-session completion can be primary, with seven-day user conversion downstream. A product with a 14-day free trial needs a window that extends past the trial boundary, because the conversion it cares about happens when the card is first charged.
Avoid calendar-month attribution for a rolling experiment. Users enrolled on the first and last day receive unequal time, and month-end pressure can close analysis early. Elapsed time from a defined index protects comparability and makes cohort charts auditable: day 0 means the same thing for every assigned user.
There is a serious alternative. Chapelle's approach models how long purchases usually take. It then estimates how many of the users still inside their window will buy eventually. Nobody waits, and no data is thrown away. For ad systems that retrain every few hours, that is the right choice. It works when purchase delays are stable and the same in both arms. It breaks in exactly the case the table shows. If the variant changes when people buy, a model trained on both arms together assumes the control's timing for the treatment, and that assumption decides the answer. Use delay models for monitoring and early hints. Keep the frozen, fully closed window for the verdict.
Run the next readout in three passes
In practice the routine fits into three passes. First, write the primary window, index event, maturity rule and late-data grace period before traffic enters. Second, monitor cumulative lag curves diagnostically without declaring a winner from immature users. Third, read the mature primary metric, place the pre-set sensitivity windows beside it, and explain timing in business terms.
This does not solve multi-touch marketing credit or reconstruct every purchase influence. It answers a narrower question: after controlled exposure, how did assigned users convert during the agreed period?
Delayed outcomes do not make A/B tests unreliable; the damage comes from measurement rules left open while the data is still arriving. If your next test has a long purchase cycle, pull last quarter's lag curve before you write the ticket, pick the shortest window whose late tail is equal across arms, and agree in advance who may make a directional call if the business can't wait for maturity. The number you end up with will often be smaller than the most flattering dashboard view, and it will survive the first analyst who reruns it.