moving analytics to a partial