Mojito Logo
Mojito
User Guides

Features and Rules

How to create and manage experiment features and traffic allocation rules.

Features and rules are the core building blocks of Mojito experiments.

Features

A feature represents an experiment or feature flag. Each feature has:

  • A human-readable name
  • A unique key used by the SDK to identify the experiment
  • One or more variants representing different experiences
  • One or more rules that control traffic allocation

Rules

A rule defines how traffic is distributed across variants for a given feature:

  • Sample rate — The percentage of eligible users who enter the experiment
  • Variant distribution — How included users are split between variants
  • Lifecycle state — Rules progress through Draft, Staging, Live, and Stopped states

Rule Lifecycle

StateDescription
DraftInitial state. Configuration can be edited freely.
StagingPublished for QA testing. Not yet serving live traffic.
LiveActively serving traffic to users.
StoppedExperiment completed. A winning variant can be selected.

Managing Features

From the property dashboard, you can:

  • Create new features
  • Edit feature names and keys
  • Archive features that are no longer needed
  • View the history of rule changes on the timeline

On this page