cordova plugin add cordova-plugin-mtastatistics --variable IOSAPPID=[your iOS AppKey] --variable ANDROIDAPPID=[your Android AppKey]
cordova plugin add cordova-plugin-mtastatistics --variable IOSAPPID=KKGI68BJ94YT --variable ANDROIDAPPID=M7FB4W1CUI8K
cordova.plugins.MTAStatistics.onPageStart(pageName, successFn, errorFn)
cordova.plugins.MTAStatistics.onPageEnd(pageName, successFn, errorFn)
cordova.plugins.MTAStatistics.onEvent(eventId, eventLabel, successFn, errorFn)
router.afterEach((to,from) => {
cordova.plugins.MTAStatistics.onPageStart(to.fullPath);
cordova.plugins.MTAStatistics.onPageEnd(from.fullPath);
})