CRO QA Protocol
Overview
This Conversion Rate Optimization (CRO) Quality Assurance (QA) Protocol ensures the integrity of A/B/n experiments before, during, and after launch. It covers five critical pillars: instrumentation, bucketing, randomization, sample ratio mismatch (SRM) detection, and variance audits.
The protocol is divided into pre-launch, ongoing monitoring, and post-experiment phases. Use tools like SQL queries on event logs (e.g., BigQuery, Snowflake), experimentation platforms (e.g., Optimizely, GrowthBook), or custom dashboards. Thresholds are configurable; defaults are provided.
Roles: Experiment owner runs checks; QA engineer reviews; data scientist audits high-risk experiments.
Escalation: Fail any check → Pause experiment → Root cause analysis → Relaunch.
1. Instrumentation Checks
Verify event tracking accuracy, preventing data leakage, double-counting, or missing events.
Pre-Launch
- User ID Consistency: Confirm
user_id (or device_id/cookie) is stable and hashed correctly (e.g., MurmurHash3). Sample 1K users: <0.1% ID flips.
- Event Firing: Tag manager/JS snippet fires primary events (e.g.,
page_view, conversion) on 100% of sessions. Test on staging with 100 synthetic sessions.
- Variant Exposure: Log
variant_exposure event on first bucket assignment. Query: SELECT COUNT(*) FROM events WHERE event_name = 'variant_exposure'.
Ongoing (Daily)
- Leakage Check: No control users see treatment UI. Query sessions by
variant and UI elements: <0.01% crossover.
- Double-Counting: Events per user/session < expected (e.g., 1
purchase per session). Flag >1% anomaly.
- Null Checks: <0.5% events with null
user_id or variant.
Post-Experiment
- Full audit of raw logs vs. aggregated metrics.
Action on Fail: Fix tracking → Re-instrument → Re-test.
2. Bucketing Checks
Ensure consistent, sticky assignment to variants across sessions/devices.
Pre-Launch
- Hash Function: Verify bucketing algo (e.g.,
hash(user_id) % 100 < 50 for control). Simulate 10K users: exact split match.
- Sticky Bucketing: Same
user_id → same bucket across 1K simulated sessions (100% consistency).
- Edge Cases: Test multi-device (e.g., login sync), query param overrides.
Ongoing (Hourly for first 24h, then daily)
Post-Experiment
- Lifetime bucket audit: No shifts >0.01%.
Action on Fail: Reset bucketing seed → Notify users if needed.
3. Randomization Checks
Confirm assignments are uniform, independent, and unbiased.
Pre-Launch
- Uniformity Test: Chi-squared test on simulated 1M assignments: p > 0.01.
- Independence: No correlation between user traits (e.g., geo, device) and bucket. Logistic regression: coef < 0.01.
- Seed Validation: Fixed seed for reproducibility; test RNG entropy.
Ongoing (Daily)
- KS Test: Kolmogorov-Smirnov on bucket distribution vs. uniform: D-stat < 0.01.
- Balance Check: Demographics (e.g., OS, country) balanced across variants (±1% deviation).
SELECT country, variant, COUNT(*) / SUM(COUNT(*)) OVER(PARTITION BY country) as pct
FROM users JOIN variants ON user_id
GROUP BY country, variant;
- Sequential Independence: Lag-1 autocorrelation on assignments < 0.001.
Post-Experiment
- Full covariate balance report (e.g., t-tests per segment).
Action on Fail: Investigate server-side issues → Re-randomize affected users.
4. Sample Ratio Mismatch (SRM) Detection
Detect traffic split deviations from expected ratios (e.g., 50/50/0 for control/treatment/reserve).
Pre-Launch
- Expected Ratios: Document in experiment spec (e.g.,
{control: 0.5, treatment: 0.5}).
- Baseline SRM: Run on holdout traffic: mismatch <1%.
Ongoing (Every 15min for ramp-up, then hourly)
Post-Experiment
- Cumulative SRM p-value > 0.01.
Action on Fail: Pause → Check traffic sources/GEO filters → Adjust ramp.
5. Variance Audits
Detect metric inflation/deflation due to instrumentation bugs or external factors.
Pre-Launch
- Historical Baselines: Compute pre-experiment variance (e.g., CV = sd/mean) for key metrics (conversion rate, revenue).
- Power Simulation: Ensure detectable effect size with variance assumptions.
Ongoing (Daily)
Post-Experiment
- Sequenced Variance Plot: Time-series variance stability.
- Bootstrap Variance: 10K resamples confirm metric SE.
Action on Fail: Segment analysis → Exclude polluted data → Re-run stats.
Execution Checklist
| Phase | Checks Run | Sign-Off |
|---|
| Pre-Launch | All sections (simulated data) | Experiment Owner + QA |
| Ongoing | SRM (real-time), others daily | Automated dashboard |
| Post | Full audit + report | Data Scientist |
Tools & Templates
- Dashboard: Looker/Grafana with above queries.
- Report Template: Google Sheet with p-values, ratios, plots.
- Automation: Airflow DAG for daily runs.
Version: 1.0 | Last Updated: [Date] | Review Quarterly.
This protocol minimizes false positives/negatives, ensuring trustworthy CRO results. For customizations, contact the Experimentation Team.