adds analytic tracking