Troubleshoot your experiment

This article helps you:

  • Identify the cause of potentially unanticipated behaviors in Amplitude Experiment

  • Fix any issues yourself, without contacting Amplitude support

Sometimes, you will experience unexpected issues with creating and rolling out an experiment or flag. This can happen for a number of different reasons, several of which will be explored in this article.

Before you begin

This article assumes that you understand how to set up and run an experiment in Amplitude Experiment. If you don't feel confident in your understanding, check out our Help Center articles on an overview of Amplitude Experiment and configuring your experiment before proceeding.

Experiment troubleshooting checklist

This list of questions acts as a quick troubleshooting checklist for any experiment discrepancies you may be experiencing. If you can answer "yes" to a question, it's probably not the cause.

Do the device ID and user ID align?
The device ID and user ID you use for experiments and flags must be the same as the device ID and user ID used in Amplitude Analytics.

Is your flag enabled?
In order for a flag to show up in a deployment, it must be enabled in that deployment.

Is your variant assigned a name of anything besides the value "off"?
Do not assign a variant a name value of “off.” This value is explicitly reserved for users in the “OFF/FALLBACK” bucket.

Is your assignment event and exposure event set to different events?
While it is possible for the assignment event and the exposure event to be the same event, they are different concepts, and each plays a different role in your experiment: The assignment event is the event that immediately precedes a user's assignment to a variant, while the exposure event is the event the user must trigger in order to see to the variant. Users can be assigned at the beginning of their session without triggering the exposure event until later in the flow.

Make sure you have the correct events assigned to each.

Are your old properties synced to new ones?
If you are running an experiment on a single platform only (for example, iOS), you might still get users showing up with a different platform value (i.e., Android). This can happen if your users are using your product on multiple platforms, with their most recent event sent from a platform other than the one you've specified for your experiment. When the assignment event is automatically sent, it does not contain non-Experiment properties (like, for example, platform).

To resolve the issue of syncing old properties, connect the Experiment SDK with the Amplitude Analytics SDK to ensure that user context is available. 

Other experiment discrepancies

At times troubleshooting issues in your experiment may be out of your control. This section highlights some of those scenarios.

Targeting on user properties is delayed

Amplitude Experiment updates the targeting on cohorts each hour. Targeting on properties explicitly sent to Experiment is immediate and real-time. Targeting on user properties stores in Amplitude can be delayed by up to one hour, due to the CDN.

A user doesn't see the variant to which they were assigned

Amplitude Experiment generates data on the server side and stores assignments as user properties. For this reason, in some cases a user may not see the variant to which they were assigned. The cause of this is usually timeouts, network errors, or ad blockers.

It's also possible for a user to see one variant of your experiment one day, but another variant the next. Because bucketing in Amplitude Experiment relies on user ID and device ID, this can happen if you are relying on device ID alone and the user's device ID changes. This can occur if the user is using incognito mode, or if they've cleared their cache and cookies since their last visit.

A user doesn't log any events past the assignment event

In some cases, a user can trigger the assignment event without logging any other active events:

  • The user's adblockers or analytics blockers are interfering with analytics application events. But since experiment requests are made from backend servers, those generally will not be impeded. This mostly affects Web users.
  • A user opened the app, a request was made to Amplitude's backend servers (which in turn triggered the assignment event), and the user left the app before firing any other actions that trigger an analytics event.
  • Amplitude's servers are receiving assignment requests directly from your backend, instead of from the end user. Check if you have instrumented experiments in offline campaigns— sending a group push notification, marketing emails, etc.
Was this page helpful?

Thanks for your feedback!

April 30th, 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.