# rollbar.js **Repository Path**: mirrors_pimterry/rollbar.js ## Basic Information - **Project Name**: rollbar.js - **Description**: Error tracking and logging from JS to Rollbar - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Rollbar notifier for JavaScript [](https://travis-ci.org/rollbar/rollbar.js) ## Quick start Copy-paste the following code into the ```
``` of every page you want to monitor. It should be as high as possible, before any other ``` ``` If you're running Rollbar on an environment besides production, change the ```environment``` value to something else (e.g. "staging"). See below for more configuration options. ### Test your installation 1. Navigate your browser to a page that has the above code installed 2. Type the following code into the console and press enter: ```window.onerror("TestRollbarError: testing window.onerror", window.location.href)``` This simulates an uncaught error. It should appear in the Rollbar dashboard within a few seconds. ## Usage In addition to catching top-level errors, you can send caught errors or custom log messages. All of the following methods are fully-asynchronous and safe to call anywhere in your code after the ```