AppFig Start free
  1. Home
  2. Docs
  3. Experiments

Experiments

An experiment is an A/B test with one audience and one set of variants, changing up to five values at once. Open it from Menu → Experiments in the dashboard. Every user in the experiment gets the same variant for every value in it, so a price and an ad frequency can be tested together.

Under the hood an experiment is a set of ordinary A/B test rules, one per value, sharing one experiment key, one audience and the same variants. The Experiments screen keeps them in step.

Building one

Part What it is
Name Shown in the dashboard and in results
Who is in it Events, user properties and device conditions, the same as any rule. Leave it empty for everyone. A user who stops matching leaves the experiment
Variants Up to 10, with whole-number shares that add up to 100%. The first variant is the control group. Names are 1 to 36 letters, digits, dashes or underscores (analytics tools cap property values at 36 characters)
Values Up to 5 features, each with a value per variant
What decides the winner More users who do an event, or more revenue per user (see below)

Start typing a key to pick a value the app already has; the screen shows its current value and its own rules. A key that doesn't exist yet becomes a new feature and counts in your plan.

Leaving a cell empty

An empty cell means as it is: users in that variant keep whatever the value's own rules give them today. The control group usually leaves every cell empty.

When a value has its own rules (a different value for one country, say), a variant that keeps it "as it is" follows those rules, and the screen tells you which of them a variant with a typed value overrides.

Where it sits

Experiment rules go above a value's own rules, so they apply first to users in the audience; everyone else gets the value's own rules. In Features, an experiment's rules are locked and link back to Experiments, so audience, variants and values stay the same across every value in the experiment.

When two experiments change the same value, a user who matches both audiences gets that value from the one higher in the list. Reorder them with the arrows; the screen warns about overlaps.

Running it

Saving writes to the draft. The experiment starts when you publish in Features, not when you save. Publish only after the app release that reads these values is live in the stores.

If a rule changes in Features after the experiment was saved (an edit, or a value's own rule that an "as it is" cell follows), the screen offers to update the experiment's rules in the draft.

Stop removes the experiment's rules from the draft, so every user goes back to each value's own rules after you publish. Roll out gives one variant's values to the experiment's audience as plain rules, also as a draft.

How results are measured

Results come from your own Google Analytics. The SDK gives each user a stable variant (user id when there is one, device id otherwise, remembered on the device) and sets a user property af_<experiment key> in your analytics tool. AppFig asks Google Analytics for each group since the experiment started.

This needs Google Analytics connected and the property registered as a user-scoped custom dimension. AppFig registers it when it has the Editor role; otherwise the results screen says how. A new property takes a day or two to show data.

More users who do an event

The share of each group's users who sent the success event (a purchase, finishing onboarding, completing a level), compared with a two-proportion test.

  • Needs at least 100 users and 10 conversions per group
  • A winner is called only when the difference is unlikely to be chance (p < 0.05), with a 95% likely range
  • A variant that earns more than 5% less per user than control is never called the winner

More revenue per user

For prices, paywalls, trial lengths and ad frequency. Revenue is Google Analytics' total revenue: purchase events with a value and currency, and ad_impression events with a value (most ad networks send these), in your property's currency.

Google Analytics gives totals, not each user's revenue, so the spread comes from days: revenue per user is read for each group on each day, and the day-by-day difference is tested against zero.

  • Needs at least 100 users per group and at least 7 days with revenue in every group, so it takes longer to call than conversion, which is the safe side when a few large spenders move the total
  • A winner is called only when the difference is unlikely to be chance, with a 95% likely range
  • The success event is optional here and only watched: a variant that earns more but clearly loses it is not called the winner
  • When no revenue reaches Google Analytics, the screen says so instead of comparing zeros

Next Steps