Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTatsky committed Jan 24, 2017
1 parent 301f96d commit 9dc81e5
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
.Trashes
ehthumbs.db
Thumbs.db


node_modules
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FancyTrack

Build v1.0.0
Build v1.0.1

Free Tiny FancyTrack JavaScript error tracking library from FancyGrid team.
FancyTrack is light alternative to [TrackJS](https://trackjs.com/) service.
Expand All @@ -17,6 +17,8 @@ Include a reference to the FancyTrack library
<script src="/fancytrack/fancytrack.min.js"></script>
```
The `FancyTrack` object is now accessible. Happy error tracking!

### Sample: Base Init
```html
<script>
FancyTrack.init({
Expand All @@ -25,7 +27,7 @@ FancyTrack.init({
</script>
```

## Method
### Sample: Set method of request
```html
<script>
FancyTrack.init({
Expand All @@ -35,14 +37,28 @@ FancyTrack.init({
</script>
```

### Sample: Track/Send custom error
```html
<script>
FancyTrack.init({
url: '/trackerror/'
});
FancyTrack.track("My Error");
</script>
```

## Parametres that FancyTrack sends

* url
* browser
* columnNumber
* errorText
* errorName
* errorStack
* lineNumber
* columnNumber
* mobile
* os
* url

## Package Directory
The package includes the following:
Expand Down
35 changes: 33 additions & 2 deletions client/fancytrack.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9dc81e5

Please sign in to comment.