Experiment design

How to A/B Test When Buyers Return for Weeks Before Converting

Keep returning buyers in one variant, set conversion windows in GrowthBook, Statsig and Optimizely, and plan runtime around Safari's 7-day cookie cap and seasonal peaks.

On this page

When a buyer opens your pricing page on a Monday, leaves to read reviews, and returns on day 19 to start a trial, a standard A/B test can lose them twice. Their browser may have forgotten which variant they saw, and your analysis may have stopped counting before they converted. Both errors tilt the result toward whichever variant makes people decide fastest, and speed of decision is a poor stand-in for revenue.

What a long conversion window changes about a test

The best practices for A/B testing with a long conversion window come down to three choices made before launch: which ID holds the assignment, how long after exposure a conversion still counts, and the date you may read the result. When buyers take weeks to decide, each of the three needs setting by hand.

Runtime is the time it takes to enroll enough people plus the length of the conversion window, because the last person enrolled needs the full window too. Stop on the day enrollment hits its target and the readout mixes early cohorts that had weeks to convert with late cohorts that had days. A variant that pulls decisions forward (an annual-plan discount with a deadline, say) can look like a winner at that early readout and fade once every cohort has had a fair window.

Keeping returning visitors in the same variant

Pricing page experimentation best practices start with cookie persistence for returning visitors, because a returning visitor who lands in a new variant sees two prices and splits one purchase decision across two arms. Many client-side testing tools keep the assignment in browser storage, and Safari limits how long that storage lives.

WebKit says Intelligent Tracking Prevention (ITP) "deletes all cookies created in JavaScript and all other script-writeable storage after 7 days of no user interaction with the website," and the storage it lists includes LocalStorage and IndexedDB. User interaction means "a user click, tap, or keyboard entry on a website," and scrolling does not count. When ITP detects cross-site tracking via link decoration, the same page says it "caps the expiry of cookies created in JavaScript on the landing webpage to 24 hours." Ad clicks often land on URLs carrying click IDs and UTM parameters, so test your paid landing pages in Safari.

Optimizely says that in browsers using ITP, for visitors with a gap of seven days or more between site visits, the previous optimizelyEndUserId cookie "will not be present when they return," they are subject to a new random variation allocation, and their on-site actions "are no longer counted toward metrics based on the initial variation assignment." Optimizely adds that "Re-bucketing instances are likely limited and do not necessarily result in bias or invalidation of experiment results." That holds where most buyers convert within a visit or two. When a ten-day gap is the normal path to purchase, more of your conversions get credited to a second assignment or drop out of the first.

Hold the assignment on an ID that outlives those caps:

  • The logged-in account ID, wherever one exists. Optimizely says "A user with the same ID always sees the same variation" and "Returning users are not reassigned."
  • A first-party visitor ID you control for anonymous traffic. Optimizely's ITP page recommends its Bring Your Own Visitor ID feature over setting the cookie on a CDN. Statsig keeps its anonymous StableID in local storage, inside Safari's 7-day rule, and lets you override it by passing your own value in the StatsigUser object, such as an ID from a cookie your server sets. WebKit caps cookies set in an HTTP response at 7 days when it detects third-party CNAME or IP address cloaking, so set that cookie from your own first-party server and confirm its expiry in Safari.
  • Sticky bucketing, in tools that offer it. GrowthBook says "Sticky bucketing ensures users continue to see the same variation when you make changes to a running experiment," with assignments stored in cookies, LocalStorage, backend-generated cookies or a Redis store.

Once the test is live, leave the split alone. Optimizely's bucketing page warns that "changing the traffic split between variations may reassign users to different variations," and that decreasing then increasing traffic causes rebucketing too.

Setting the conversion window in each tool

Choose the window from your own data first. Pull first-visit and conversion timestamps for recent months, plot days to convert, and pick the day by which most conversions have landed.

ToolWhere the window livesWhat its docs say
GrowthBookMetric window set to Conversion Window, with an optional Metric DelayConversion windows "only look at events that are tied to the first exposure"; Metric Delay ignores conversions in the first X hours (default 0)
Statsig (Warehouse Native)Custom Attribution Window as the metric's rollup modeIncludes data "within a specified time window after exposure"; start = 0, end = 6 gives a 7-day window
Optimizely WebWe found no conversion window setting in the pages we readConversions stay with the first assignment for as long as the visitor ID survives

In GrowthBook, the default metric window is None for fact metrics and Conversion Window for legacy metrics. With None, the window runs from a user's first exposure to the experiment end date, so by that definition a late enrollee has fewer days in which a conversion can count. Switch long-cycle metrics to Conversion Window; since that window can extend past the end date, you can stop enrolling and keep counting.

Statsig pairs the Custom Attribution Window with an option labeled "Only include units with a completed window." Turn it on for long cycles, so a cohort with 30 days of history is never weighed against one with three.

Testing a pricing page without showing anyone two prices

To A/B test a pricing page without confusing returning visitors or your attribution, the price a person saw has to follow them everywhere that price appears. We work to five rules:

  1. Assign on the account ID once one exists, and copy the anonymous assignment onto the account at signup.
  2. Send the variant to checkout, billing and the CRM. A sales rep quoting the control price to someone who saw the test price does the same damage as a cookie reset.
  3. Show anyone who viewed the pricing page before launch the current price, and leave them out of the analysis.
  4. Freeze variant weights, eligibility rules and ad targeting for the whole run, because each change alters who enters which arm.
  5. Decide before launch what happens to buyers who saw the losing price, such as honoring it for a set period.

For attribution, log the variant on the conversion event itself, then split ROAS and CAC by arm. A price that lifts trial starts while lowering paid conversions can look strong in the ad account and weak in revenue.

Timing tests around seasonal traffic

Running A/B tests with seasonal traffic and a long sales cycle means planning two calendars: the weeks people enroll and the weeks their windows close. Optimizely says "You should run tests for a minimum of one business cycle (seven days) to ensure all kinds of user behavior are accounted for." With long cycles, the harder job is making enrollment cover whole weeks in a period whose visitors resemble your buyers for the rest of the year.

Randomization keeps the comparison fair, since both arms live through the same quarter-end or holiday sale. What it cannot fix is who enrolled: a test that enrolls mostly during a promotion measures how promotion shoppers respond to your price.

  • Start enrollment after a peak ends and stop it before the next one begins. Windows can close during a peak if they must, because both arms share it.
  • Keep paid budgets and bidding steady while people enroll, since a bidding change shifts the visitor mix. Our guide to measuring lift after switching to AI bidding covers how learning periods and seasonality blur a readout, and lining up budget moves with the test calendar belongs in any paid media plan.
  • When the question is whether a channel or offer creates demand at all, a page-level test cannot answer it. That calls for a holdout, covered in our explainer on incrementality.

A worked runtime example

The figures below are hypothetical, chosen to show the arithmetic.

  • A SaaS pricing page gets 3,000 new eligible visitors a week, split 50/50.
  • The baseline is 4% of visitors buying a paid plan within the window.
  • The smallest lift worth acting on is 4.0% to 4.8%, a 20% relative change, at 95% confidence (two-sided) and 80% power.
  • Past data shows most buyers convert within 28 days of their first pricing-page visit.

The standard two-proportion approximation gives the sample per arm: (1.96 + 0.84)² × (0.04 × 0.96 + 0.048 × 0.952) ÷ 0.008² ≈ 10,300 visitors.

StepCalculationResult
Visitors needed10,300 × 2 armsabout 20,600
Enrollment20,600 ÷ 3,000 a week6.9 weeks, rounded up to 7 full weeks
Conversion windowlast cohort enrolls in week 74 more weeks
Earliest fair readout7 + 4 weeksend of week 11

Reading at week 7 would weigh a first-week cohort that had its full 28 days against a final cohort with a few days, the setup where a faster-deciding variant wins on timing alone. A quarter-end push in week 9 would fall after enrollment closes, while the late windows run through it and both arms share it. When the week-11 numbers arrive, the ROAS calculator is a quick way to see what the winning conversion rate means for paid spend.

Put the readout date in the test plan next to the hypothesis, and share it with whoever controls the ad budget. A test like this ties up the pricing page for most of a quarter, so save it for a pricing question big enough to deserve the wait.

Sources

Frequently asked questions

How long should the conversion window be in an A/B test?
Set it from your own history. Measure the days from first visit to conversion over recent months and choose the day by which most conversions have happened. Then add that window to the enrollment period when you plan runtime, because the last visitors enrolled need the full window before you read the result. In our hypothetical example, a 28-day window on a seven-week enrollment makes an eleven-week test.
Does Safari's tracking prevention affect A/B test results?
It can. WebKit says ITP deletes cookies created in JavaScript and other script-writeable storage, including LocalStorage, after 7 days without user interaction. Optimizely says visitors who return after a gap of seven days or more lose their previous visitor cookie and are subject to a new random variation allocation. Keep assignments on a logged-in ID or a first-party ID you control, and check the behavior in Safari.
Can I change the traffic split while a test is running?
Optimizely's bucketing documentation says you can increase total traffic allocation without rebucketing users, but changing the split between variations may reassign them, and decreasing then increasing traffic causes rebucketing. GrowthBook's sticky bucketing exists to keep users in their original variation when targeting or rollout changes. On a pricing test, set the weights once and leave them.
Should I stop a long-window test as soon as it reaches significance?
Wait until every enrolled visitor has had the full conversion window. Before then, early cohorts have had weeks to convert and late cohorts only days, so a variant that speeds decisions up can look like a winner on timing alone. Statsig's option to include only units with a completed window, and GrowthBook conversion windows that run past the experiment end date, both support waiting.

Free tools for this topic

PLAYBOOKThe CRO PlaybookA conversion research and testing program that ships wins.FREE TOOLHeadline & Hook AnalyzerScore any headline, subject line or hook in seconds.CALCULATORCAC, LTV & Payback CalculatorUnit economics that tell you when to step on the gas.

Keep reading

GlossaryWhat Is Incrementality? The Question Attribution Can't AnswerRead →Google AdsHow to Measure the Lift From Switching to AI BiddingRead →GlossaryWhat Is CAC? Customer Acquisition Cost, ExplainedRead →
CATALIST NEWSLETTER

Monthly dose of growth marketing.

Get marketing tips, narratives, guides, and playbooks delivered to your inbox.

Protected by reCAPTCHA — Google's Privacy Policy and Terms of Service apply.