daypress
admin route/d-admin/ab-testing
doc versionv1.0.4
reading time4 min read
section group22 · Growth & Marketing
Docs/Growth & Marketing
/d-admin/ab-testing4 min readv1.0.4

Zero-Flicker Server-Side A/B Testing & Winner Promotion

Client-side A/B scripts tank Core Web Vitals by hiding the page or flashing replacement text after load. Under Tools → A/B Testing (/d-admin/ab-testing), Daypress evaluates split variants right inside Rust SSR before bytes leave the server.

How deterministic SSR variant bucketing works

When an active experiment targets a route (e.g. / or /pricing/), Daypress hashes the visitor's daily cookieless bucketing key against the experiment ID and traffic split percentage:

  • Zero CLS / Zero Flash: Variant A or Variant B HTML renders directly on the server in microseconds, and the same visitor sees a consistent variant throughout the session without third-party cookies.
  • Conversion Attribution: Downstream FormStudio submissions, CTA clicks, or newsletter signups automatically credit the assigned variant (`impressions` vs `conversions`).
http://localhost:8090/d-admin/ab-testing — Server-Side A/B Experiments
Daypress A/B Testing screen showing active Homepage Hero CTA experiment, traffic split, conversion rates, Z-test confidence, and Core Web Vitals
Tools -> A/B Testing (/d-admin/ab-testing) tracks variant conversion lift and statistical confidence alongside Core Web Vitals.

Creating & managing experiments via MCP

json (mcp)
// MCP: daypress_manage_ab_tests
{
  "action": "create",
  "name": "Pricing Hero Headline Test",
  "target_path": "/pricing/",
  "selector_or_key": "Simple, transparent pricing",
  "variant_b_content": "Replace 12 WordPress plugins with one binary",
  "traffic_split_pct": 50
}

Statistical confidence & 1-click Promote Winner

Daypress continuously computes a two-proportion Z-test confidence score comparing Control (A) and Challenger (B) conversion rates. Once an experiment reaches statistical significance (>= 95% confidence), click Promote Winner (or pass "action": "promote_winner") to commit the winning copy permanently into the page's AST and close the experiment.