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
Discover 1 story with “analytics” Tag.