splithub_create_experiment
Create A/B experiments for React and Next.js apps; this legacy alias forwards to splithub_experiment_create for the current create action.
Instructions
Old name of splithub_experiment_create, kept for one release: call splithub_experiment_create instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | experiment key, lowercase | |
| to | No | redirect experiments: variant → destination path | |
| end | No | ISO date the experiment ends | |
| goal | No | the goal: any event name the app sends with track() (signup, Video Played) or a goal key from the config; an event not in goals becomes a goal, nothing to declare first | |
| kind | Yes | ||
| name | No | human name shown instead of the key; can be renamed later, the key stays | |
| layer | No | mutual exclusion: experiments in one layer never share a visitor; bucket ranges [start, end) must not overlap | |
| match | No | redirect experiments: the path it runs on, e.g. / | |
| start | No | ISO date the experiment starts | |
| status | No | ||
| values | No | value experiments: variant → value | |
| factors | No | mvt only: factor → level → value, e.g. { headline: { old: "Old", new: "New" }, button: { blue: "#2563eb", green: "#16a34a" } }; first level = control; at most 4 factors × 4 levels | |
| minDays | No | opt-in fewest days before a verdict (default 0 = none); verdicts otherwise depend on sample size | |
| traffic | No | percent of visitors in the experiment (default 100) | |
| weights | No | relative weights, same order as variants (not for mvt) | |
| variants | No | variant keys, first = control (not for mvt) | |
| secondary | No | goals (event names or goal keys) to watch next to the primary goal | |
| goodSample | No | total visitors at which verdict.sample.quality turns good (default 5000); informational, never changes the verdict | |
| guardrails | No | goals (event names or goal keys) that must not get worse; { goal, worse: "higher" } when a rise is bad (refunds, errors). A breach makes the verdict guardrail_breached: do not ship | |
| description | No | ||
| maxVisitors | No | stop counting after this many visitors |