moving analytics to its own mixin