You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>functioninitTrakerr() { var c =newTrakerrClient('<your apikey>', '<version of your code>', '<deployment stage of codebase>'); c.handleExceptions(false); } initTrakerr();</script>
17
+
<script>functioninitTrakerr() { var c =newTrakerrClient('<api-key>', '<version of your code>', '<deployment stage of codebase>'); c.handleExceptions(false); } initTrakerr();</script>
18
18
```
19
19
20
20
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.
var TrakerrClient =require('trakerr-javascript'); //This is only necessary for NPM use.
36
-
var client =newTrakerrClient('<your apikey here>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
36
+
var client =newTrakerrClient('<api-key>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
37
37
38
38
//any error thrown with throw new Error('...'); will now be sent to Trakerr
39
39
client.handleExceptions(false);
@@ -48,7 +48,7 @@ Include the dependencies and initialize the global client variable with your API
<script> trakerr =newTrakerrClient('<your apikey>', '<version of your code>', '<deployment stage of codebase>'); </script>
51
+
<script> trakerr =newTrakerrClient('<api-key>', '<version of your code>', '<deployment stage of codebase>'); </script>
52
52
```
53
53
54
54
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
80
80
81
81
```javascript
82
82
var TrakerrClient =require('trakerr-javascript'); //This is only necessary for NPM use.
83
-
var client =newTrakerrClient('<your apikey here>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
83
+
var client =newTrakerrClient('<api-key>', '<app version here>', '<deployment stage here>'); // replace value within quotes with your values instead
84
84
```
85
85
86
86
### Option-1: Handle exceptions with a global handler
0 commit comments