Create an Experiment
Learn how to create an experiment in Harness FME.
A/B testing, also known as split testing, allows you to evaluate how changes (such as a new feature, layout, or user experience) impact user behavior. By randomly assigning users to different variants and measuring performance across groups, you can determine whether a proposed change improves key metrics like conversions, engagement, or retention.
Experimentation enables teams to make data-driven decisions, reduce risk, and validate assumptions before a full feature rollout. A/A testing (where both variants are identical) helps verify your experiment setup and establishes a baseline for expected metric behavior.
On the other hand, A/B testing reveals whether a change actually drives meaningful outcomes. Running A/A tests before A/B tests helps ensure your experiment results reflect true performance differences, not implementation issues or noise.
Experiments in Harness FME are powered by feature flags. Each experiment is tied to a specific flag and environment, allowing you to control who sees which treatment (or change) during the test.
Before diving in, make sure you've formed a clear hypothesis and chosen a primary metric. For guidance on planning and design principles, see Experimentation best practices.
Create an A/B test
To create an A/B test in Harness FME:
Navigate to Experiments and click Create experiment.
Enter a name for the experiment, for example:
standard_discount.In the Assignment Source section, select a feature flag (e.g.
frontend_discount_coupon) and an environment (e.g.Preview) from the dropdown menus.Optionally, click Show advanced to set an experiment entry event filter.
Select a filter (e.g.
Has done the following event prior to the metric event) and a qualifying event from the dropdown menus.Only users who trigger this event are counted as exposures.
The filter applies globally to all metrics; if a metric has its own filter, both must be satisfied.
In the Scope section:
Set a start and end date/time for the experiment.
Select a baseline treatment (such as
off) and a comparison treatment (such aslow) to define what you're testing against and what you're measuring the impact of.Choose a targeting rule (such as
default rule) to define how users are assigned to treatments.
Optionally, enter a hypothesis for your experiment to document the expected outcome or behavior change you're testing (e.g. "Offering a small discount will increase checkout conversions").
A well-formed hypothesis follows the pattern: "[Change] will [impact] [metric] because [reason]." This makes it easier to evaluate results objectively after the experiment ends.
In the Owners section, assign a user or team to manage the experiment and be notified of changes.
Apply tags to help categorize your experiment (for example, by team, status, or feature area). Organizing experiments into categories (such as onboarding, pricing, or retention) helps surface patterns over time. See Use tags to organize experiments.
Click Save.
Limiting the number of users in an experiment
You can't directly cap the total number of users who will participate in an experiment. However, you can use the Limit exposure option to control the percentage of eligible users who are exposed to the experiment at any given time.
This approach lets you:
Reduce risk when rolling out changes.
Gather results from a smaller sample before expanding to all users.
View experiment results
Once your experiment is running, Harness FME automatically tracks key metrics and monitors the statistical significance of the results.
RESPECT THE REVIEW PERIOD
Avoid drawing conclusions before your experiment has run for its intended duration. Checking results too early (sometimes called "peeking") inflates the likelihood of false positives and fails to account for day-of-week or time-of-day variation in user behavior. Wait for the full review period before making a decision.
To analyze performance across treatments, view metrics impact, and make informed decisions about feature rollouts, see the Experiment Results documentation.
Select metrics to track impact
To understand how each treatment affects user behavior, add relevant metrics to your experiment. These can include business KPIs, performance indicators, or user engagement data.
You can assign the following metric categories to your experiment any time after it starts:
Key metrics evaluate whether your hypothesis holds. Pick one primary key metric that determines the experiment's outcome.
Guardrail metrics ensure important areas like performance or stability are not negatively impacted.
Supporting metrics offer additional context, even if they're not directly tied to the experiment's success criteria.
For more information, see the Metrics documentation.
Measuring mobile app value vs desktop
A common question in cross-platform experimentation is: "If we have 100 orders a day across mobile and desktop, how much of that is truly incremental, and how much would have converted anyway without the app?"
The answer isn't just about order volume. Mobile app value spans user experience, engagement depth, retention, and lifetime value. No single metric captures it fully, so the most reliable approach combines multiple methods.
For an interactive onboarding experience including further use cases and features like **cloud experimentation**, check out the Harness Feature Management & Experimentation Cloud Experimentation for Product Managers certification.
Last updated
Was this helpful?