moving analytics to its own haml file