A/B Testing
info
Learn how to set up A/B testing in your by following the A/B Testing guide.
Retrieve A/B Testing Ids
After configuring an A/B test in your GameAnalytics dashboard you can retrive the testing ids with the following methods:
# get the ab test id
var abTestId = gameAnalytics.getABTestingId()
print("A/B test id is:" + abTestId)
# get the assigned variant id
var abVariantId = gameAnalytics.getABTestingVariantId()
print("A/B test variant id is:" + abVariantId)