Getting Started with Angular.js Apps

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

Angular

Install Setup Code

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

<script src="//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 reload your page now. That's it! You've sent your first event.