analytics mixin