analytics converted to mixin