Skip to content

Testing Scripts

John Williams edited this page Mar 13, 2026 · 1 revision

Testing Scripts

ab-testing.js (537 lines)

Statistical A/B testing framework for ad creative. Labels ads as control/variant, tracks performance over a configurable window, calculates statistical significance, and recommends winners when confidence thresholds are met.

ad-rotate-analysis-V1.js (619 lines)

Ad rotation performance analysis. Compares ad variants within ad groups to identify statistically significant performance differences.

Tips for A/B Testing in Google Ads

  1. Run tests for at least 2-4 weeks to accumulate sufficient data
  2. Only test one variable at a time (headline, description, CTA)
  3. Use the script's confidence threshold — don't declare winners prematurely
  4. Pin winning elements and test the next variable

Clone this wiki locally