Try Stellar A/B Testing for Free!

No credit card required. Start testing in minutes with our easy-to-use platform.

← Back to BlogQuick Triage for Marketers: Catch SRM, A/A, and Logging Test Errors

Quick Triage for Marketers: Catch SRM, A/A, and Logging Test Errors

Marketer reviewing an experiment traffic anomaly

Test errors are the implementation, tracking, sampling, and analysis mistakes that quietly invalidate an A/B experiment's results. The moment you suspect one, pause your analysis and run integrity checks first: a sample ratio mismatch (SRM) test and a review of your logging pipeline. Everything below shows how to detect these problems and fix them before they cost you a bad rollout decision.


TL;DR:

  • Sample ratio mismatch often indicates instrumentation or logging bugs, typically caused by redirects, inconsistent hashing, or event drops.
  • Continuously monitoring results without planned stopping rules inflates false positive rates, making significance less reliable.
  • Running offline and live A/A tests helps identify measurement or tracking errors before trusting experimental outcomes.
  • Filters for nonhuman traffic and careful examination of per-user distributions are essential to prevent bot bias from skewing results.
  • Using a no-code platform with real-time checks and a validation workflow reduces setup errors and speeds bug detection.

Table of Contents

Quick Triage Checklist: Fast Checks to Run Now

Before trusting any experiment result, run through a short triage list. Most test errors show up in one of these checks within minutes.

  • Run an SRM test (chi-squared or binomial) on your assignment counts; even a small deviation from the expected split can signal a real bug.
  • Pull up your most recent A/A test, or run one offline against historical data, as a sanity check on instrumentation.
  • Check your logging and ETL pipeline for missing partitions, dropped events, or broken redirects between domains.
  • Plot your overall evaluation criterion (OEC) and guardrail metrics over time to catch sudden shifts tied to a deployment or campaign.
  • Scan for bot traffic and outliers that could be skewing your averages.

When you run these in order:

  1. Start with SRM, since it is the fastest way to catch an assignment or logging bug.
  2. Move to logging and ETL checks if SRM looks clean but results still seem off.
  3. Check for time-based anomalies last, since these often point to an external cause rather than a bug.

Detection Techniques: Statistical and Behavioral Checks Explained

An SRM test compares the actual visitor split between variants to the expected split, typically 50/50, using a chi-squared or binomial test. A significant p-value below a strict threshold means something is interfering with random assignment, not that your experiment failed. As explained in Seven Pitfalls to Avoid when Running Online Controlled Experiments, SRM should be treated as a symptom to diagnose, not dismissed: split your assignment counts by browser, region, and device to find where the imbalance concentrates.

A single SRM failure often traces back to a caching layer or a redirect that drops users differently between variants, and catching it early avoids wasted analysis time on a broken dataset.

Offline A/A tests, run against historical data before launch, catch metric-calculation bugs that a live A/A test might miss entirely, since they isolate the measurement logic from live traffic noise. Live A/A tests, run continuously in parallel with real experiments, are better at catching drift that only appears under production conditions.

A few other checks worth running regularly:

  • Plot treatment and control means and sample sizes by day to spot deployment or campaign effects hiding inside your data.
  • Monitor event rates per user, raw sample counts, and cache hit rates as leading indicators of pipeline trouble.
  • Isolate and exclude any time window tied to a known release or marketing push before drawing conclusions.

Common Root Causes and Pragmatic Fixes

Most test errors trace back to one of five sources, each with a fairly direct fix.

  1. Instrumentation failures: cookie or user-ID flips across sessions, broken cross-domain redirects, and missing events. Fix by auditing your tagging setup and confirming identity persists across every step of the funnel.
  2. Sampling and assignment bugs: poor RNG seeding, inconsistent hashing functions, or stateless assignment logic that reassigns the same visitor differently. Fix by testing your hashing function against a known sample and confirming assignment is deterministic per user.
  3. Bot bias and outliers: nonhuman traffic and extreme values that distort averages. According to IEEE/Stanford guidance on online experiments, robots can massively skew metrics, so filter obvious nonhuman activity and inspect per-user distributions before trusting a mean.
  4. ETL mismatches: logs that disagree with your system of record, often from a missing partition or a failed job. Fix by reconciling log counts against a trusted source on a regular cadence, not just when something looks wrong.
  5. Operational drift: mid-experiment patches, cache interference, or infrastructure changes that shift behavior partway through a test. Fix by freezing code changes during an active experiment where possible and logging any exception.

The same source notes that data loss can occur at any stage of the pipeline, sometimes biasing results in ways that are easy to miss unless you monitor loss at both the aggregate and machine level.

Pro Tip: Log every deployment, cache purge, and config change with a timestamp, so a sudden metric shift can be matched against a known event instead of guessed at.

Metric shift aligned with system change events

Statistical Pitfalls and Safer Analysis: Peeking, Multiple Tests, and Sequential Methods

Checking your results every day and stopping the moment you see significance feels efficient, but it breaks the math behind your p-value. According to research on analyzing binary data for large-scale A/B testing, continuous monitoring or "peeking" inflates Type I error and makes standard confidence intervals unreliable, because the test was built for a fixed sample size decided in advance.

Two practical alternatives exist:

  • Group-sequential boundaries, such as O'Brien-Fleming, let you check results at planned intervals without inflating false positives.
  • Always-valid p-values, including mixture sequential probability ratio tests (mSPRT), are built for optional stopping from the start, so you can act on results the moment they're trustworthy.

Always-valid inference methods let practitioners stop experiments early while retaining Type I error guarantees, making them a practical industry alternative to naive peeking. How to design and analyze online A/B tests within decentralized organizations

Running several experiments at once adds another layer of risk: a family-wise correction is more conservative and fits a small number of related tests, while a false discovery rate (FDR) correction scales better when you're running many tests in parallel. If you plan to slice results by subgroup, decide your segments and your stopping rule before you launch, not after you see which group looks promising.

A Compact Validation Workflow to Bake Into Every Experiment

A short checklist, repeated for every experiment, catches most test errors before they reach a dashboard.

  1. Pre-launch: run an A/A test, calculate power and sample size for your OEC, and write down your guardrail metrics.
  2. Runtime: set automated SRM alerts, define ramp-up and auto-abort rules, and check logging health daily.
  3. Post-hoc: re-run analysis on windowed data if you suspect an anomaly, use bootstrap methods for nonstandard metrics, and document anything unusual.
  4. Recordkeeping: log experiment metadata, deployment windows, and every change made during the test.
StageKey actionWhy it matters
Pre-launchA/A test and power calculationConfirms instrumentation and sample size before launch
RuntimeSRM alerts and abort rulesCatches assignment and logging bugs in real time
Post-hocWindowed reanalysis and documentationSeparates real effects from external noise

Our guide on A/B test significance goes deeper into the inference side of this workflow.

How a Lightweight Experimentation Platform Can Reduce These Errors

Many of the errors above start with setup, not statistics. We built Stellar around that problem:

  • A visual editor can help reduce developer misconfiguration and facilitate A/A validation before launch.
  • A lightweight script size helps keep performance impact minimal, which matters because slow-loading variants can create timing differences that masquerade as real effects.
  • Real-time analytics and integrity checks can help surface SRM and logging issues faster than manual review.
  • A Sandbox tier can let teams validate their setup before committing to a paid plan.

Author Perspective and Recommended Team Practices

Most teams chase a single significant result instead of defining their OEC and guardrails up front, and that habit is where test errors do the most damage. An SRM failure or a failed A/A test is not noise to filter out. It is a signal pointing at a real problem, and ignoring it just defers the cost. Automate the checks so your team spends its attention on what the data actually means, not on manually re-verifying plumbing every week.

— Juan

Optional Next Step: Using a Lightweight Platform to Avoid Common Test Errors

We built Stellar for teams who want fewer setup mistakes without hiring an engineer for every experiment. The no-code visual editor, the 5.4KB script, and built-in monitoring are aimed directly at the errors covered above: misconfigured variants, performance-driven timing skew, and SRM issues that go unnoticed until it's too late.

Gostellar

If you want to test your own A/A and SRM checks before scaling anything, start on our Sandbox plan, which is free for businesses tracking under 25,000 monthly users. Paid plans (Plus at $29 per month, Pro at $99 per month, and Scale at $399 per month) unlock higher limits and more advanced features once you're ready to grow.

FAQ

What causes sample ratio mismatch in an A/B test?

Sample ratio mismatch usually comes from an instrumentation or randomization bug, such as a broken redirect, inconsistent hashing, or a logging gap that drops users unevenly between variants. According to Seven Pitfalls to Avoid when Running Online Controlled Experiments, a chi-squared or binomial test is the standard way to confirm it before investigating further.

Why does checking my A/B test results early cause problems?

Checking results continuously and stopping as soon as you see significance inflates your false positive rate, because the statistics assume a fixed sample size decided in advance. Research on large-scale A/B testing recommends always-valid p-values or group-sequential boundaries if you need to monitor results as they come in.

What is an A/A test and why does it matter?

An A/A test runs the same experience against itself to confirm your tracking and assignment logic work correctly before you trust a real experiment. A failed A/A test, live or offline, points to a measurement or instrumentation bug rather than a real treatment effect.

How do I know if bots are skewing my test results?

Look for unusually high event rates from single sessions, sessions with no realistic time between actions, or traffic spikes with no matching marketing activity. Guidance on online controlled experiments recommends filtering obvious nonhuman traffic and checking per-user distributions rather than relying on averages alone.

Does Stellar help prevent these test errors?

A no-code visual editor and a lightweight script size are designed to reduce common setup mistakes and performance-driven side effects, while real-time analytics can help surface issues like SRM faster. A Sandbox tier is often available for teams who want to validate their setup before paying for a plan.

Sources

These sources cover the statistical and operational detail behind the checks in this guide, including SRM testing, sequential inference, and experiment hygiene. We recommend reading them directly for formulas and worked examples beyond what fits here. For help defining your primary metrics and spotting release-driven shifts, see this guide to measuring website success.

Recommended

Published: 10/5/2026