Skip to content

Run experiments

Register an experiment in a change set, check its design, start it, and act only on the calls Handline makes at its planned looks.

Updated

Handline calls experiments, not you. It tests the numbers only at planned looks, with a method that keeps the false-positive rate where the experiment rules set it however often you read the results. Between looks, numbers are interim and can't be called.

Register and start one#

  1. Write the arms

    For a page experiment, create each variant page in a change set with variantOf: the experiment's id and the arm's id. For a message experiment, write each arm's copy.

  2. Register the experiment

    In the same change set, create an experiment item. Give it a name, question and hypothesis, its type and split, and 2 to 5 arms. Add the decisionMetric stage, the smallest worthwhile effect minEffect, your decisions for a win, a loss and no difference, and its scope. Publish it.

  3. Check the design

    Call experiments_design with its id. It works out the baseline, each arm's traffic, the sample, the planned looks, the duration and the cost, and says whether it is feasible. When it isn't, it lists alternatives.

  4. Start it

    Call experiments_start. Handline checks it, locks the plan and schedules its looks. From then on, its arms and metric can't change.

Exactly one arm is the control, and the arms' shares add up to 1. A page experiment's arms each name a page; a concept or message experiment's arms each name a concept or copy.

typeTestssplit
pageTwo or more versions of a pageapp: Handline assigns each visitor an arm.
messageEmail or outbound versionsapp: Handline deals out recipient links per arm.
conceptDifferent concepts in one cellplatform, with the platform's test, or none
platformA test run in the ad platform's own A/B toolplatform, with platformTest naming the test

An experiment Handline splits is grade A; a platform's own test is grade B. A comparison outside an experiment is an observation, grade C, which you propose with learnings_propose.

When there is no traffic history yet#

The design check works from the traffic the experiment will split. A message or platform test draws only on its own placements, so a test on new sequences or new ads has no history yet. Registering it without assumptions is refused, because there is nothing to design on.

Give assumptions in the experiment item: a baseline, the share of visits expected to reach the decision metric (0.05 is 5%), and dailyVisits, the visits a day across all arms. For a message experiment, dailyVisits is the recipients a day. The design check and experiments_start use them, and the design says its baseline was assumed. Once there is history, Handline uses the history instead.

While it runs#

  • Read experiments_results as often as you like. Every read is logged. Until a look calls the experiment, it says the numbers are not callable.
  • An experiment_look work item opens at each planned look. If the look makes a call, experiments_get shows it.
  • Never stop an experiment because interim numbers look good or bad. Reading results many times a day, or changing arms after a look, raises a flag.
  • experiments_slice shows an exploratory slice by country, day, channel or placement. A slice is never a result. To test it properly, experiments_promoteSlice registers it as its own experiment.
  • experiments_stop stops an experiment early. It makes no call and produces no learning.

When it is called#

A call is a win, a loss or no difference, made at a planned look. Before any call, a grade A experiment must pass a sample ratio check, and guardrails can stop a win.

  1. Act on the decision you registered.
  2. For a page win, experiments_applyWinner applies the winning version through a change set. It keeps a small standing control on the old version, so the effect is checked over time.
  3. experiments_readout shows the readout Handline wrote from the stored results. Add your reading with experiments_interpret; it is shown as yours and can't change a number. experiments_publishReadout publishes it.
  4. The learning goes into the library (learnings_list, learnings_library), which the next design check uses.

A message experiment in a sending tool#

Sending tools' own A/B features break a clean comparison, so Handline makes the split.

  1. Write each arm's copy, and record one placement per arm in the sending tool: one sequence per arm, or one variant per arm with the tool's A/B feature off.
  2. Register the experiment with "type": "message" and "split": "app", listing each arm's placement in its placementIds. New sequences have no history, so give assumptions with the recipients a day. Then start it.
  3. Call experiments_recipientLinks with the number of recipients. Each link comes back with its arm. Give every recipient their arm's version and their own link at every step, and never move a recipient between arms.
  4. Report sends, deliveries, replies, bounces and complaints per arm with numbers_report, on each arm's placement. Sends per arm are the base of the sample ratio check.

The backlog#

Keep hypotheses in the backlog until there is room to test them. Add them with backlog_add and change them with backlog_update. Then list them with backlog_list, which ranks them by what is feasible and fits the exploration budget. To test one, call backlog_promote: it turns it into a registered experiment in a new change set. A simulated pre-screen (backlog_attachPrescreen) can help rank an item, but is never evidence.

Was this page helpful?