This article will describe the whole mixpanel integration with ionic 2 apps. But make sure you have first created an ionicv2 project