This article helps you:
Instrument your app for A/B testing (split testing)
Review the results of A/B tests in Amplitude
A/B testing is a method of conducting controlled, randomized experiments with the goal of improving a website or application metric. With Amplitude's AB Test View, you can measure the impact of your experiments by comparing how each experiment group behaves in your application.
For example, you can show two different onboarding flows to different groups of new users, then use the results to identify the flow that's more effective in driving users to complete the onboarding process. Or you can test different checkout flows to see which is more effective in generating sales.
Don't confuse this feature with Amplitude Experiment.
Before you can do anything, you must instrument your experiments. Amplitude recommends using user properties to associate a user with a given experiment variation. User properties reflect traits about each individual person using your product. Use them to segment your analysis in Amplitude Analytics.
There are two main ways to update a user property:
SDKs & HTTP API: Update user properties on event action.
Identify API: Update user properties without sending an event.
For example, suppose you're trying to get users who have been inactive for more than seven days to return to your app, and you're testing the effectiveness of an email to make that happen. If the Identify API is used to update a user property, it will only apply to those users who have returned to trigger an event in your application. If a user remains inactive after receiving the email, the user property doesn't apply to this user. As a result, this inactive user isn't included in the experiment group that has received the email, because the user property never attached to them. In situations like these, consider updating user properties on an event action (for example, an event called "Email Sent").
Learn more about how user properties are synced in Amplitude.
Amplitude users tend to take one of two approaches when instrumenting split tests:
All user properties arrive as key-value pairs. This approach sets the experiment name as the key and all variations of the experiments as the potential values.
User Property Key: Experiment 1
User Property Value: variation_a
Pros: Can easily select experiments to segment by from the user segmentation tab.
Cons: Can result in an overwhelming list of user properties, depending on the number of active experiments.
All user properties arrive as key-value pairs. This approach sets the key to Split Tests
(or something similar) and stores the values in an array.
User Property: Split Tests
User Property Value: [experiment_1_value
, experiment_2_value
]
You can segment on the user property Split Tests
by selecting the appropriate value or test group in the chart's segmentation module.
Pros: You will only have one user property related to your split testing (rather than one per experiment), so your user property list is more manageable in the dashboard.
Cons: Arrays can't exceed 10,000 characters if you use append
or prepend
. If an array exceeds this limit, Amplitude doesn't record any characters past the threshold.
This feature doesn't support merged or transformed properties.
Amplitude also offers a full integration with Optimizely that automatically updates user properties for each experiment.
Review the results of your split tests after user properties update for each experiment group. Use the AB Test View conduct this analysis.
Compare the activity between experiment groups in the segments module of the chart control panel. To do this, simply add your experimental groups.
Thanks for your feedback!
July 11th, 2024
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2024 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.