Track ionicModal Views/Events


With the following code below I can track pageviews of user navigation and send to other applications like GA, Flurry, etc.

.run(function($ionicPlatform,$state, $rootScope) {
  $ionicPlatform.ready(function() {
    $rootScope.$on("$stateChangeStart", function (event, next,current) {
          console.log('next page', next);

Does anyone know how can I track/watch events when users open an ionicModal inside the app? I’d like to watch events and know the path of the respective modal file (eg: recover_password.html).