bug fix

moving analytics into bracket