repair tracking code for analytics