10 Lessons Learned From Online Experiments
Ten practical lessons from a year of online A/B experiments on Shopify's multi-currency, geolocation and translation features. Randomization units should be independent (user rather than session, to avoid carryover), and simulations are a fast way to check statistical worries such as false-positive inflation when randomization and analysis units differ. A/A tests with redirects surfaced sample ratio mismatch caused by bots and client-side pageview logging, and in another experiment SRM traced to cookie-based qualification logic flipped the result from negative to positive. Other lessons: understand your data pipeline and log generously, peek at results (without stopping early) to catch outliers like a single high-volume store, and slice results by segment because the overall number is only an average.
Related posts
- When Can You Ship on Offline Evals Alone?
Spotify Engineering hardMasterShipping AI changes on offline evals alone, without A/B tests, can bound the risk of harming online metrics only under strong assumptions: a homogeneous, exchangeable corpus of paired offline/online effects, known measurement error, and LLM-judge bias that doesn't depend on the treatment arm. Ignoring measurement noise badly attenuates the observed offline-online correlation (24% naive R² vs 60% true in the worked example), and pooling heterogeneous experiments can produce Simpson's-paradox false surrogacy. The proposed decision gate ships or kills only on sufficiently strong eval effects, with thresholds that scale with surrogate strength, routes the middle to A/B tests, and keeps a random audit pool to detect drift. Spotify still pairs offline evals with online experiments.
- Scaling Reliable Experimentation in a Two-Sided AdTech Marketplace: ZMS Budget Split
Zalando Engineering mediumAdeptIn a two-sided retail media marketplace, A/B test variants that draw from shared advertiser budgets violate SUTVA, because a more efficient treatment drains the budget and depresses control metrics (cannibalization bias). Zalando's ZMS solves this with Budget Split, which partitions each campaign into virtual sub-campaigns proportional to traffic so each variant runs isolated auctions. Orthogonal Concurrency extends the approach to concurrent experiments by splitting budgets into cross-product buckets (e.g., 1A2A, 1A2B, 1B2A, 1B2B). Residual interference from algorithmic campaign steering, shared pre-experiment ML training data, manual ops interventions and right-censoring is still monitored, and experiment volume grew from 8 in 2023 to over 60 in 2025.
- Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics
Shopify Engineering mediumAdeptA Monte Carlo simulation can quantify how much sampling noise obscures real trends in a success metric that can only be measured by sampling, using Shopify App Store audits (a "shop issue rate" modeled as Poisson-distributed requirement violations) as the example. The method defines simulation metrics such as MAPE and the share of months where the sampled metric decreases (1mDO, 2mDO), generates sampled time series under assumed monthly improvement rates, repeats them across iterations, and grid-searches sample size and effect size in Python/pandas. With 10 mean issues, 100 audits per month and a true 5% monthly decrease, a decrease is observed in 83% of months and 97% over two months, giving stakeholders a concrete tradeoff between audit cost and certainty.
- 5 Steps for Building Machine Learning Models for Business
Shopify Engineering mediumAdeptA five-step workflow for building ML models in a business context: confirm ML is warranted (defer it for brand-new products and beat a heuristic baseline first), start with simple models and basic features or off-the-shelf pretrained components, and pick a metric tied to business impact before optimizing. The advice also covers sanity-checking outputs via confusion matrices and residuals, since 98% accuracy on rare-event fraud data can mean a useless model. Model iteration should run through staging flows or A/B tests with fair comparisons and attention to run-to-run variance, and teams should watch prediction stability for individual users across retrains.
- 1Password's AI patching benchmark is misleading
Trail of Bits mediumAdeptTrail of Bits argues that 1Password's FLAWED benchmark headline of a 26% clean-fix rate for AI patching is misleading. The figure mixes in prompts that deliberately instruct the wrong fix (22% of the data) and no-testing modes (36%), on a handpicked set of six hard vulnerabilities, with grader disagreements and errors. Reanalyzing the published data, 86% of patches blocked the exploit when agents could run code and weren't misled. Trail of Bits contrasts this with its own data: developers' first fixes fail 12.5% of the time, and maintainers merged 67.7% of Patch the Planet PRs, 72.2% of those without security-relevant revision. It also releases post-patch-validation and review-walkthrough agent skills and proposes principles for sound patching benchmarks.