https://github.com/fancygrid/fancytrack
FancyTrack - JavaScript Error Tracking library from @FancyGrid
https://github.com/fancygrid/fancytrack
error javascript trackjs
Last synced: 6 months ago
JSON representation
FancyTrack - JavaScript Error Tracking library from @FancyGrid
- Host: GitHub
- URL: https://github.com/fancygrid/fancytrack
- Owner: FancyGrid
- License: bsd-3-clause
- Created: 2017-01-23T09:31:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T17:06:52.000Z (almost 6 years ago)
- Last Synced: 2025-01-02T12:14:12.110Z (12 months ago)
- Topics: error, javascript, trackjs
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 83
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FancyTrack
Build v1.0.5
FancyTrack - JavaScript error tracking library from FancyGrid team.
FancyTrack is light alternative to [TrackJS](https://trackjs.com/) service.
## Pros and Cons
It is free and light.
But at the moment it overrides window.onerror handler.
window.onerror is not supported by IE Edge
## Quick Start
Include a reference to the FancyTrack library
```html
```
The `FancyTrack` object is now accessible. Happy error tracking!
### Sample: Base Init
```html
FancyTrack.init({
url: '/trackerror/'
});
```
### Sample: Set method of request
```html
FancyTrack.init({
url: '/trackerror/',
method: 'POST'
});
```
### Sample: Track/Send custom error
```html
FancyTrack.init({
url: '/trackerror/'
});
FancyTrack.track("My Error");
```
## Parametres that FancyTrack sends
* browser
* columnNumber
* errorText
* errorName
* errorStack
* lineNumber
* mobile
* os
* url
* userAgent
## Package Directory
The package includes the following:
```
| README.md
├── client
│ ├── fancytrack.min.js
│ ├── fancytrack.js
| ...
```
## Resources
[Capture and report JavaScript errors with window.onerror](https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror.html)
[Test case of error reporting on php](https://github.com/FancyGrid/FancyTrack/blob/master/client/error.php)
## Install
#### *npm*
```
npm install fancytrack
```
## Support
If you need any assistance or would like to report any bugs found in FancyTrack, please contact us at support@fancygrid.com