The mixpanel api uses success callbacks to trigger code after a tracking event is completed, so that you can be sure that the event is logged before running your next function, like:
leavePage = function(){ window.location = 'http://google.com'; }
mixpanel.track('event', null, leavePage)
I would like to do the same thing with an alias call, like:
mixpanel.alias('am-i-done-yet@example.com', leavePage)
The mixpanel docs don't seem to mention any more than one argument to alias, I guessed at the above undocumented API without success. Anyone know of workarounds to trigger a success event when aliasing is complete?