[GH-ISSUE #3] Setup Airbrake for your JavaScript application #3

Closed
opened 2026-02-25 22:33:51 +03:00 by kerem · 0 comments
Owner

Originally created by @flupine on GitHub (Jul 11, 2018).
Original GitHub issue: https://github.com/flupine/VPNSox-CP/issues/3

Install Airbrake in 2 easy steps:

Step 1: Add the library
Include via CDN:

<script src="https://cdnjs.cloudflare.com/ajax/libs/airbrake-js/1.1.1/client.min.js"></script>

We also support installation via npm and Bower.

Step 2: Copy this config snippet to your app.js file

(You can find your project ID and API KEY with your project's settings):

var airbrake = new airbrakeJs.Client({
  projectId: <Your project ID>,
  projectKey: '<Your project API Key>'
});

To test that Airbrake has been installed correctly in your JavaScript project, just open up the JavaScript console in your internet browser and paste in:

airbrake.notify('hey there!')

Visit official GitHub repo for more info on alternative configurations and advanced options.

Originally created by @flupine on GitHub (Jul 11, 2018). Original GitHub issue: https://github.com/flupine/VPNSox-CP/issues/3 ### Install Airbrake in 2 easy steps: **Step 1:** Add the library Include via CDN: ```html <script src="https://cdnjs.cloudflare.com/ajax/libs/airbrake-js/1.1.1/client.min.js"></script> ``` We also support installation via [npm](https://github.com/airbrake/airbrake-js#installation) and [Bower](https://github.com/airbrake/airbrake-js#installation). **Step 2:** Copy this config snippet to your `app.js` file (You can find your project ID and API KEY with your [project's settings](https://airbrake.io/projects/189725/edit)): ```js var airbrake = new airbrakeJs.Client({ projectId: <Your project ID>, projectKey: '<Your project API Key>' }); ``` To test that Airbrake has been installed correctly in your JavaScript project, just open up the JavaScript console in your internet browser and paste in: ```js airbrake.notify('hey there!') ``` Visit [official GitHub repo](https://github.com/airbrake/airbrake-js) for more info on alternative configurations and advanced options.
kerem 2026-02-25 22:33:51 +03:00
  • closed this issue
  • added the
    airbrake
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/VPNSox-CP#3
No description provided.