---
title: "10 Lessons Learned From Online Experiments"
description: "Ten practical lessons from a year of online A/B experiments on Shopify's multi-currency, geolocation and translation features."
url: "https://swe.quest/articles/10-lessons-learned-from-online-experiments-ddcc212d6c480867"
canonical: "https://shopify.engineering/lessons-learned-online-experiments"
source: "Shopify Engineering"
published: "2021-06-17"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 12
tags: ["analytics","testing","ecommerce"]
---

# 10 Lessons Learned From Online Experiments

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-06-17, 12 min read, Opinion. Original: [https://shopify.engineering/lessons-learned-online-experiments](https://shopify.engineering/lessons-learned-online-experiments)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)

## Prerequisites

- A/B testing basics ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- hypothesis testing and p-values ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

A/B testing, A/A testing, sample ratio mismatch, Kafka, Shopify

## Related posts

- [When Can You Ship on Offline Evals Alone?](https://swe.quest/articles/when-can-you-ship-on-offline-evals-alone-7dcb77ec604a6e78.md): Spotify Engineering · 2026-11-19 · Hard · 11 min read · Evaluation, LLMs, Machine learning
  Shipping 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.
- [Scaling Reliable Experimentation in a Two-Sided AdTech Marketplace: ZMS Budget Split](https://swe.quest/articles/scaling-reliable-experimentation-in-a-two-sided-adtech-marketplace-zms-budget-c68e3c8f0c5c3d70.md): Zalando Engineering · 2026-08-31 · Medium · 5 min read · Ads, System design
  In 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).
- [Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics](https://swe.quest/articles/monte-carlo-simulations-separating-signal-from-noise-in-sampled-success-metrics-7237ecec15008958.md): Shopify Engineering · 2023-01-03 · Medium · 11 min read · Analytics & OLAP, Python, Algorithms
  A 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.
- [5 Steps for Building Machine Learning Models for Business](https://swe.quest/articles/5-steps-for-building-machine-learning-models-for-business-9d6ce609a5ab2c3d.md): Shopify Engineering · 2021-08-25 · Medium · 15 min read · Machine learning, ML platforms, Evaluation
  A 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.
- [1Password's AI patching benchmark is misleading](https://swe.quest/articles/1password-s-ai-patching-benchmark-is-misleading-fef916b39e218263.md): Trail of Bits · 2026-09-15 · Medium · 11 min read · Evaluation, AI for coding, Vulnerability research, Open source, AI agents
  Trail of Bits argues that 1Password's FLAWED benchmark headline of a 26% clean-fix rate for AI patching is misleading.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
