What is A/B testing in a mobile app or game?
A/B testing gives random groups of users different versions of one thing and compares a chosen metric to see which version does better.
A/B testing means showing different versions of one thing to randomly chosen groups of users at the same time and measuring which version does better. Because the groups differ only in the version they saw, a difference in the result can be put down to the change. An experiment is a feature flag whose value depends on the group. In a mobile app or game the "thing" is usually a value: a price, a trial length, the number of lives, how often an ad appears.
Control and variants
The control group keeps the current behavior. Each variant gets one changed version.
Random and stable assignment
- Random. Users are placed by chance, typically by hashing an id, never by picking.
- Stable. A user stays in the same group for the whole test. Someone who sees the price at 4.99 on Monday and 6.99 on Tuesday belongs to neither group.
Choosing the metric
Decide what counts as winning before the test starts.
Conversion: the share of users who do something, such as finishing onboarding, completing level 10 or starting a trial. It suits changes to flows and difficulty.
Revenue per user: total revenue divided by users in the group. It is the right metric for prices, paywalls and ad frequency, where a variant can convert fewer people and still earn more. A few large spenders can move the total, so it needs more time.
Pick one. If you watch ten metrics, one will move by chance.
Sample size and running time
Small groups produce large differences by accident. A result is usually called "significant" when a difference this large would appear by chance less than 5% of the time (p < 0.05).
- The smaller the improvement you want to detect, the more users you need.
- Rare events need more users than common ones. A purchase takes far longer to test than finishing a tutorial.
- Run for at least one full week, so that weekdays and weekends are both in the data.
Common mistakes
- Stopping early. Stopping the first time one variant is ahead turns noise into a "winner". Set the stopping rule first.
- Testing on an old app version. If the version that reads the new value is not yet live in the stores, most users cannot see the variant. Start the test after the release is out.
How AppFig experiments work
An AppFig experiment has one audience and up to 10 variants with percentage shares, and can change up to five values at once. The first variant is the control, and the audience uses the same conditions as any rule (events, user properties, device).
The SDK assigns the variant on the device with no network call, by hashing the user id when there is one and the device id otherwise, and remembers it across restarts and when you change the shares.
Results are read from your own Google Analytics. For a conversion metric, a winner is called with at least 100 users and 10 conversions per group and p < 0.05. For revenue per user, it needs at least 100 users per group and at least 7 days with revenue in every group. See Experiments and the A/B testing reference.
FAQ
How long should a mobile A/B test run?
Until each group has enough users for your metric, and at least a full week. AppFig does not call a revenue winner before seven days with revenue in every group.
Do I need a new app release to run a test?
Only if the app does not yet read the value you want to test. Once the code reads it through remote config, further tests on that value need no release.
How many A/B tests can I run at once?
As many as you have users for. On AppFig the Lite plan runs 1 test at a time and the Full plan 25 per app; see pricing.