MooTune is MooTools class for logging events, errors and AB tests to multiple backends such as Google Analytics, Mixpanel or your own server logs. It can be used to gain insights into the actions your user’s take on your site, the errors they encounter and the affect of variations on the site with their interactions.

To implement MooTune, you need to setup the tracking scripts for the backend services you’d like to use (e.g Google Analytics, Mixpanel). Once you create an instance of MooTune, you can add calls to myMooTune.handleEvent(obj) in your code wherever something happens that you’d like to log to your backend(s). For each call to handleEvent, MooTune will send the appropriate call to all of the backends you have specified.

MooTune supports a simple method for doing A/B (split) testing. Actually, it’s multivariate (as many options as you want). When instantiating MooTune, pass in an array of tests.