Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practices for split testing Android apps

For web applications split testing various options get usually split tested to maximize their effectiveness with tools like Google Website Optimizer. One of the most impressive example might be Google and how the split tested dozens of shades of blue to find the right one.

When developing android applications are there best practices to follow for A/B testing or multivariate testing?

like image 932
Christian Avatar asked Mar 14 '26 08:03

Christian


1 Answers

Came here first then continued down the results and came across an elegant answer. (Vincent Tsao on 12 May 11)

private static final boolean isA = UUID.randomUUID().getLeastSignificantBits() % 2 == 0; 

public void onCreate(Bundle savedInstanceState){ 
   super.onCreate(savedInstanceState); 

   if(isA){ 
       setContentView(R.layout.mainA); 
       MyApp.getInstance().tracker().trackPageView("/AUser"); 
   }else{ 
       setContentView(R.layout.mainB); 
       MyApp.getInstance().tracker().trackPageView("/BUser"); 
   } 
   ... 
}

My only thought is to save the choice so they return to the same layout each time.

like image 143
Chris Avatar answered Mar 15 '26 22:03

Chris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!