An open API service indexing awesome lists of open source software.

https://github.com/TrackJs/trackjs-package

JavaScript Browser Error Monitoring Agent from TrackJS
https://github.com/TrackJs/trackjs-package

error-monitoring error-reporting front-end-monitor frontend-monitoring javascript-monitoring monitoring

Last synced: 12 months ago
JSON representation

JavaScript Browser Error Monitoring Agent from TrackJS

Awesome Lists containing this project

README

          

TrackJS Browser Agent
===============

The browser agent for collecting errors from JavaScript, Network, and console
exceptions. The agent wraps the browser API to record context about your
application, network, and visitor, and include that context when unhandled
errors occur.

You'll need a TrackJS account to use this agent. If you don't have one, [why not
start a free trial today?](https://trackjs.com/signup)

## Quick Start

1. [Signup for TrackJS](https://trackjs.com/signup) and get your token.
2. Add a dependency on TrackJS with `npm install trackjs --save`
3. Install the agent in your app. You can paste the script tags into the
`` of your HTML:

```html

window.TrackJS && TrackJS.install({ token: 'YOUR_TOKEN_HERE' });

```

Or you can bundle it as a module into your application.

```javascript
import { TrackJS } from 'trackjs';
TrackJS.install({ token: 'YOUR_TOKEN_HERE' });
```

4. Test it out by calling `TrackJS.track('testing!')` somewhere in your
application.
5. You should see your error on [TrackJS](https://my.trackjs.com/recent) within
a few seconds.

## More Information

You can find more information about how to install and configure the agent in
the [TrackJS Documentation](https://docs.trackjs.com/). If you run into any
trouble, let us know right away at `hello@trackjs.com`