added analytics tracking for A/B testing