A/B Testing
info
Learn how to set up A/B testing in your game by following the A/B Testing guide.
Retrieve A/B Testing IDs
After configuring an A/B test in your GameAnalytics dashboard you can retrieve the testing ids with the following functions:
if (ga_is_remote_configs_ready()) {
var ab_test_id = ga_get_ab_testing_id();
var ab_variant_id = ga_get_ab_testing_variant_id();
}
info
The A/B testing ids are empty until the Remote Configs are ready, so read them after ga_is_remote_configs_ready() returns true.