What Is Sticky Bucketing, and Why Does Where Your A/B Test Fires Matter?
Sticky bucketing keeps each shopper in the same A/B test variation every time they return, so nobody sees control on Monday and the new version on Tuesday. Where the test fires matters just as much: counting only shoppers who reach the changed page keeps unaffected visitors out of the results and makes a real effect easier to detect.
Last updated December 1, 2026
Two settings decide whether an ecommerce A/B test produces a number worth trusting, and neither is the variation itself. The first is bucketing: how a shopper gets assigned to control or a variation, and whether that assignment holds when the shopper comes back. The second is triggering: where on the site the test actually fires and which visits get counted. A CRO manager running about fifteen tests at once across three brands put both concerns plainly on a sales call in November 2026: a shopper who lands in control, leaves to cook dinner and returns on the same device should see control again, and the test tag should not fire across the whole website. This playbook explains both settings, how they go wrong, and how to check them before a test starts.
Key takeaways
- Sticky bucketing keeps a returning shopper in the variation they first saw, so one person never experiences both versions.
- Triggering decides which visits count; firing a test only on the pages it changes keeps unaffected shoppers out of the data.
- Leaky bucketing and site-wide triggering both dilute the measured effect, which makes real wins look flat.
- Check assignment, trigger point and exclusions before launch, then watch the split and error rates while the test runs.
Part of: How to Run A/B Tests Without a Lot of Developer Work
What is sticky bucketing in A/B testing?
Bucketing is the step where an experimentation tool assigns a visitor to a group, such as control or variation B. Most tools assign by hashing an identifier, usually a cookie or a logged-in user ID, so the same identifier lands in the same group every time. Sticky bucketing goes one step further: it stores the assignment so the shopper stays in that group even if the test's traffic split, targeting rules or variations change while it is running. GrowthBook's sticky bucketing documentation describes it as keeping users in their originally assigned variation, and Optimizely documents a similar approach with a user profile service that keeps visitor bucketing consistent.
For an online store, the practical meaning is simple. A shopper who saw the old product page on their first visit should see the old product page on their second visit, their third visit and the visit where they finally buy. If that shopper sees both versions, the purchase cannot be credited cleanly to either one, and the shopper may also notice the page changing, which affects behavior on its own.
Why does a returning shopper need to see the same variation?
Ecommerce purchases often span several sessions. A shopper browses on a lunch break, compares prices in the evening and checks out the next morning. The test is measuring the effect of the experience across that whole journey, so the experience must stay constant across the journey. When assignment leaks, three things go wrong at once.
The first problem is contamination: a shopper exposed to both versions belongs to neither group, but still gets counted in one of them. The second is dilution: contaminated shoppers pull the two groups toward each other, so a real difference shrinks in the results. The third is a broken experience: a price display, a size guide or a checkout layout that changes between visits can confuse shoppers and reduce trust. All three push a test toward a flat or misleading result, which is one reason many A/B tests come back inconclusive.
What breaks sticky bucketing on an online store?
Most leaks come from the identifier, not the test. Cookie-based assignment breaks when a shopper clears cookies, browses in a private window, or switches from a phone to a laptop. Browser privacy features that shorten the life of some cookies can also reset assignment for returning visitors. Logged-in assignment survives device switches, but most ecommerce traffic is anonymous until checkout, so it rarely covers the whole funnel.
Mid-test changes cause the rest. Changing the traffic split from 50/50 to 80/20, adding a variation, or widening the audience can reshuffle existing shoppers in tools that recompute assignment from scratch. Sticky bucketing exists to stop that reshuffle. If the tool in use does not store assignments, the safest rule is to avoid changing a live test's split or variations, and to restart the test with a fresh sample when a change is unavoidable.
What does it mean for an A/B test to fire, and why does the trigger point matter?
A test fires when the testing script decides a visit belongs in the experiment and records the shopper as exposed. Targeting decides who is eligible, such as mobile shoppers in the United States. Triggering decides when an eligible shopper is actually counted, such as on reaching a product page with a size selector. Many teams set targeting carefully and leave triggering at the default, which is often every page of the site.
Site-wide firing counts shoppers who never saw the change. If a test changes the checkout shipping step but fires on the homepage, most counted shoppers never reach the shipping step. Their behavior is identical in both groups, so they add noise without adding signal, and the test needs far more traffic to detect the same real effect. Firing the test at the point of change, the step the variation actually alters, counts only shoppers who could be affected. The same traffic then produces a clearer answer, which matters even more for stores that have to plan around limited traffic for each test.
Site-wide firing vs firing at the point of change
| Question | Test fires on every page | Test fires where the change is |
|---|---|---|
| Who gets counted | Every eligible visitor, including people who never reach the changed page | Only shoppers who reach the page or step the variation alters |
| Effect on the measured result | Unaffected visitors dilute the difference between groups | The measured difference reflects shoppers who saw the change |
| Traffic needed | More, because the signal is mixed with noise | Less for the same confidence |
| Script load | Test code runs on pages that do not need it | Test code runs only where it is used |
| When it makes sense | Site-wide changes such as navigation or header tests | Page or step changes such as a product page, cart or checkout test |
Site-wide firing also has a speed cost. A testing script that evaluates on every page adds work to pages that are not part of any experiment. Whether A/B testing makes a site flicker or slow down covers that trade-off, and client-side vs code-level tests explains where each approach runs.
How do you check bucketing and triggering before a test starts?
Pre-launch hygiene check for an ecommerce A/B test
- STEP 1
Name the trigger point
Write down the exact page or step the variation changes, and fire the test there.
- STEP 2
Pick the identifier
Decide whether assignment follows a cookie, a logged-in account or both, and note the gaps.
- STEP 3
Confirm assignment sticks
Visit as a test shopper, leave, return on the same device and confirm the same variation loads.
- STEP 4
List exclusions
Exclude internal staff, bots and shoppers already in a conflicting test on the same page.
- STEP 5
Freeze the setup
Agree not to change the split, audience or variations mid-test, or restart if you must.
The return-visit check in step three takes a few minutes and catches the most common leak. Open the page, note the variation, close the browser, reopen it on the same device and load the page again. Repeat once on a phone. If the variation changes, the identifier is not persisting, and the test will undercount its effect.
Exclusions deserve the same care. Running several tests at once is normal for a large program, but two tests that change the same page element can interact. Keeping concurrent tests on separate pages, or making them mutually exclusive, keeps each result readable.
What should you watch while the test runs?
Watch the split first. If a test is set to 50/50 and the groups drift to 55/45, something is assigning shoppers unevenly, often a redirect, a caching rule or a script that fails to load for one variation. This pattern is called a sample ratio mismatch, and a result read on top of one is unreliable. Then watch errors and speed by variation. A JavaScript error or slow load that hits only one variation will decide the test on its own, regardless of the design. The guardrail metrics every ecommerce A/B test should watch lists those checks in detail.
Finally, read the result only at the planned end. Peeking daily and stopping on a good day inflates false wins, and it undoes the benefit of a clean bucketing and triggering setup.
How does Noibu's A/B Testing agent handle test setup and reading?
Noibu's A/B Testing agent writes each experiment with a hypothesis, a single success metric and the variations, and serves it to the right visitors only after a person approves the test. That approval step is the natural place to confirm the trigger point and exclusions above. Once the test is live, every session is tied to the variation the shopper saw, and the agent flags errors or slow loads that hit one variation more than another, so a broken variation does not quietly decide the outcome. It reads the result against the control and reports whether the test ran long enough.
The A/B Testing agent works alongside Noibu's Bug Resolution, Performance, CRO, ADA and ROAS agents, in the Noibu console and in Claude, ChatGPT and other AI tools through Noibu MCP. Noibu's A/B Testing agent explains the full workflow, and the free website audit shows what the agents find on your own store.
Noibu is AI for ecommerce operations, the always-on optimization system that keeps online stores running at their best. A team of supervised AI agents finds what's broken, slow, or leaking revenue, does the work, and hands results back for human approval. Trusted by retailers like Free People, Guess, Liquid I.V., and Ariat.
Frequently asked questions
What is sticky bucketing?
Sticky bucketing stores each visitor's A/B test assignment so the visitor stays in the same variation on every return visit, even if the test's split or targeting changes while it runs.
Why does an A/B test need to fire only where the change is?
Firing at the point of change counts only shoppers who can be affected by the variation. Firing on every page adds visitors who never saw the change, which dilutes the result and means the test needs more traffic.
What breaks sticky bucketing?
Cleared cookies, private browsing, switching devices and changing a live test's split or variations are the most common causes. Logged-in assignment survives device switches but only covers shoppers who sign in.
What is the difference between targeting and triggering?
Targeting decides who is eligible for a test, such as mobile shoppers in one country. Triggering decides when an eligible shopper is counted, such as on reaching the product page the test changes.
What is a sample ratio mismatch?
A sample ratio mismatch is when the groups in a test end up with a different share of traffic than planned, such as 55/45 instead of 50/50. It signals an assignment or loading problem, and results read on top of one are unreliable.
