Feature/mixpanel updates 27 7

I think this should be defined before the if so that further down you don't get a tracker 'undefined' error if you haven't setup tracking.