, stateChangeSuccess :
angular.module('starter', ['ionic', ... ,'angulartics',
'angulartics.google.analytics',
'angulartics.google.analytics.cordova','angulartics.mixpanel'])
.run(function($rootScope, $state, $analytics, $location){
$rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams){
var currentPath = $location.path();
$analytics.pageTrack(currentPath);
$analytics.eventTrack(currentPath, {category: 'pageview', label: 'pageview'});
});
});
, $analytics.pageTrack
location.path
.
! - .