Experiment Statuses (Reference)

Documents / Reference

This page is the canonical list of experiment (campaign) lifecycle states. A status is a labeled stage in a process—like “draft” vs “published” on a blog. In CROForge each status is a number in code (enum values 0–5) so the frontend, API, and Smart Code agree. Only Running is included in live Smart Code.

Source: EXPERIMENT_STATUS / EXPERIMENT_STATUS_COLOR in lib/enums.ts. Doc ID: ref.statuses. Audience: both (product users and developers).

Words used on this page

WordEveryday meaningMeaning in CROForge
EnumA labeled list of allowed values (no magic loose numbers in UI copy).EXPERIMENT_STATUS in lib/enums.ts: Draft 0, Running 1, Paused 2, Completed 3, Trash 4, Archived 5.
DraftA work in progress, not shown to the public.Enum 0. UI color key secondary. Not in live Smart Code.
RunningLive; currently in front of real visitors.Enum 1. UI color key success. Yes — included in live Smart Code.
PausedTemporarily stopped; you can start it again.Enum 2. UI color key warning. Not in live Smart Code.
CompletedFinished on purpose; the test is over.Enum 3. UI color key success. Not in live Smart Code.
TrashThe recycle bin—removed from normal lists, not necessarily gone forever.Enum 4. UI color key destructive. Not in live Smart Code.
ArchivedFiled away for history, not active work.Enum 5. UI color key info. Not in live Smart Code.
UI color keyA token that tells the design system which badge color to use.EXPERIMENT_STATUS_COLOR: secondary, success, warning, destructive, info.
Live Smart CodeWhether the compiled init.js still evaluates this experiment for real visitors.Only Running (1) is Yes. All other statuses are No.

Screenshot filename

Suggested screenshot filename: experiment-statuses.png (same asset as the lifecycle guide). Capture the campaign list with status badges. Insert the real image from the WordPress Media Library in place of this note.

Status table

Treat this table as the source of truth for numeric values. Product copy should use the Name column; APIs and Smart Code use the enum value.

StatusEnum valueUI color keyLive Smart Code?
Draft0secondaryNo
Running1successYes
Paused2warningNo
Completed3successNo
Trash4destructiveNo
Archived5infoNo

Code mapping: EXPERIMENT_STATUS.DRAFT = 0, RUNNING = 1, PAUSED = 2, COMPLETED = 3, TRASH = 4, ARCHIVED = 5. Color map: Draft → secondary, Running → success, Paused → warning, Archived → info, Trash → destructive, Completed → success.

Related reading