@@ -35,9 +35,9 @@ bower install https://github.com/trakerr-io/trakerr-javascript
3535Install global handler
3636``` javascript
3737var TrakerrClient = require (' trakerr-javascript' ); // This is only necessary for NPM use.
38- var client = new TrakerrClient (' <api-key>' , // Your API key
39- ' <app version here> ' , // Your app version
40- ' <deployment stage here> ' ); // Custom deployment stage of your code.
38+ var client = new TrakerrClient (' <api-key>' , // Your API key
39+ ' 1.0 ' , // Your app version
40+ ' production ' ); // Custom deployment stage of your code.
4141
4242// any error thrown with throw new Error('...'); will now be sent to Trakerr
4343client .handleExceptions (false );
@@ -52,9 +52,9 @@ Include the dependencies and initialize the global client variable with your API
5252<script src =" https://cdnjs.cloudflare.com/ajax/libs/stacktrace.js/1.3.1/stacktrace.min.js" ></script >
5353<script src =" https://cdn.jsdelivr.net/gh/trakerr-com/trakerr-javascript@1.1.0/dist/trakerr.min.js" ></script >
5454<!-- initialize the client globally -->
55- <script > trakerr = new TrakerrClient (' <api-key>' , ' <api-key> ' , // Your API key
56- ' <app version here> ' , // Your app version
57- ' <deployment stage here> ' ); // Custom deployment stage of your code.
55+ <script > trakerr = new TrakerrClient (' <api-key>' , // Your API key
56+ ' 1.0 ' , // Your app version
57+ ' production ' ); // Custom deployment stage of your code.
5858 </script >
5959```
6060
0 commit comments