Catch your site’s JavaScript errors in the chat
Error tracking inside the chat. When a visitor writes “it doesn’t work”, the error behind it is already in their chat.
Turn it on
Admins open Settings → JS errors and switch on Catch errors. It is off by default and works on every plan, Free included. Nothing changes in your code: the widget loads a 2 KB handler only while the switch is on.
What is caught
- Uncaught JavaScript errors and unhandled promise rejections on your pages.
- Up to 20 different errors per page; a repeat on the same page is sent once.
- Each one goes to that visitor’s Debug log in the chat: name, message, stack,
script:line:coland the page URL. Agents with the chat open see it live.
What is skipped
- Only your scripts (on by default) skips scripts from other domains: ads, analytics, other widgets. Your site’s subdomains count as your own; add more hosts, such as a CDN, in the same section.
- Always skipped: browser extensions, the cross-origin “Script error.” with no details, “ResizeObserver loop” noise and Pong’s own code.
- Ignore list: one line per pattern, matched against the error name, message and script address, any case. Or press Ignore on an error’s Debug page: open pages stop sending it at once.
The Debug page
With the switch on, the desk’s left bar gets Debug (the bug icon). Its badge counts open errors with new hits since you last looked.
- Left: the site’s errors of the last 7 days, listed like chats, newest first: error type, message,
file:line, time and how many times. - Right: the open error in full: name, message and the full script address with line and column; times, visitors, first and last seen; a 7-day chart; the latest stack trace with the places in your code marked; the pages it happened on; browsers and OS; the latest 100 hits with time, visitor (a link to their chat), page, browser and city. It updates live while open.
- Open and Fixed tabs, and filters by page and browser. Mark fixed moves an error to Fixed; if it happens again, it reopens as “back after the fix”.
- Copy report puts the whole report on the clipboard, ready for a ticket or a developer. Ignore (admins) adds the message to the ignore list. Delete (admins) removes the error with all its hits.
- Each error has its own address,
app.pong.ee/debug/…: send it to a colleague and they open the same report.
In the chat
The client info panel of a chat has a JS errors block: the errors this visitor hit, with count and time, each linking to its Debug page. Settings → JS errors holds only the switches and the ignore list.
Try it
Errors typed straight into the browser console are not reported to the page, so they never show up. To test, turn the switch on, open your site and run this in the console:
setTimeout(function () { notDefined() })
A ReferenceError appears on the Debug page and in your visit’s Debug log.
Pong.debug.