Skip to content

Commit 7cd58cd

Browse files
committed
Using tokenized api key in docs
1 parent 259a67e commit 7cd58cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Include the following in your HTML
1414
<script src=“https://cdnjs.cloudflare.com/ajax/libs/superagent/3.5.2/superagent.min.js“></script>
1515
<script src=“https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/1.3.1/stacktrace.min.js”></script>
1616
<script src=“trakerr.min.js”></script>
17-
<script>function initTrakerr() { var c = new TrakerrClient('<your api key>', '<version of your code>', '<deployment stage of codebase>'); c.handleExceptions(false); } initTrakerr();</script>
17+
<script>function initTrakerr() { var c = new TrakerrClient('<api-key>', '<version of your code>', '<deployment stage of codebase>'); c.handleExceptions(false); } initTrakerr();</script>
1818
```
1919

2020
This will catch all errors using javascript's onerror and send them to trakerr. While this code is useful, we recommend using the Detailed Integration Guide below to send more useful information about errors.
@@ -33,7 +33,7 @@ bower install https://github.com/trakerr-io/trakerr-javascript
3333
Install global handler
3434
```javascript
3535
var TrakerrClient = require('trakerr-javascript'); //This is only necessary for NPM use.
36-
var client = new TrakerrClient('<your api key here>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
36+
var client = new TrakerrClient('<api-key>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
3737

3838
//any error thrown with throw new Error('...'); will now be sent to Trakerr
3939
client.handleExceptions(false);
@@ -48,7 +48,7 @@ Include the dependencies and initialize the global client variable with your API
4848
<script src=“https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/1.3.1/stacktrace.min.js”></script>
4949
<script src=“trakerr.min.js”></script>
5050
<!-- initialize the client globally -->
51-
<script> trakerr = new TrakerrClient('<your api key>', '<version of your code>', '<deployment stage of codebase>'); </script>
51+
<script> trakerr = new TrakerrClient('<api-key>', '<version of your code>', '<deployment stage of codebase>'); </script>
5252
```
5353

5454
And in the angular module, install an $exceptionHandler as shown below:
@@ -80,7 +80,7 @@ In your script, the first thing before sending an event is to create a client. F
8080

8181
```javascript
8282
var TrakerrClient = require('trakerr-javascript'); //This is only necessary for NPM use.
83-
var client = new TrakerrClient('<your api key here>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
83+
var client = new TrakerrClient('<api-key>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
8484
```
8585

8686
### Option-1: Handle exceptions with a global handler

0 commit comments

Comments
 (0)