Getting Started with Ionic Apps

These short and simple guides will get you familiar in integrating Atatus with Ionic apps and start tracking error and performance. Let’s go through the steps to get you started.

Ionic

Install Setup Code

Copy & paste this code into the <head> tag of your index.html to start using Atatus on your Ionic app. Please make sure that you add it before other script tags as well.

<script src="https://dmc1acwvwny3.cloudfront.net/atatus.js"> </script>
<script type="text/javascript"> atatus.config('YOUR_API_KEY').install(); </script>
Replace the YOUR_API_KEY string with the API Key that is assigned for your project.

Add an angular exception handler

angular.module('YOUR_APP').factory('$exceptionHandler',
  ['$window', function ($window) {
  return function (exception, cause) {
    if ($window.atatus) {
      $window.atatus.notify(exception);
    }
  };
}]);

Send an event

Just reopen your app now. That's it! You've sent your first event.