added analytic code for a/b experiment