The solution to get mixpanel-js to work in your cordova app
I updated mixpanel-js to support localStorage and proper cordova support. This code is available on my fork and I submitted a pull request. It's likely to be merged soon. Let's discover together why and how mixpanel-js is a better approach