Ionic Analytics Track Custom Event not logging to dashboard

How do we track errors using Ionic Analytic.?
I am sending a custom Event when Angular JS related error occurs.

Code

.factory('$exceptionHandler', function ($injector) {
 	return function (exception, cause) {
 	var $ionicAnalytics =$injector.get('$ionicAnalytics');     		   exception.message += ' (caused by "' + cause + '")';
 		$ionicAnalytics.track('ErrorStack', {
 		   message: exception.message+'',
 			  });
 	};
 })

And the console shows that Object is queued for sending, but never appears in dashboard.(Even after waiting for 1 hour…)

Below is a screenshot

image

Any comments?

1 Like