Errors
Errors shows what broke for real visitors (JavaScript errors in their browsers and errors in your server routes), grouped into issues, with what each one cost in conversions and a replay of the moment it happened.
Error tracking comes with Growth, Pro and Enterprise (Plans). On Starter, errors your site sends aren't stored, and the Errors page says so.
Turn it on
Error tracking comes with the web SDKs and is off until you turn it on:
<!-- script tag -->
<script defer src="https://ingest.heyglancy.com/glancy.js" data-key="YOUR_WRITE_KEY" data-errors></script>
// npm
new BrowserClient({ writeKey: "YOUR_WRITE_KEY", host: "https://ingest.heyglancy.com", errors: true });
// Next.js
<GlancyProvider errors>{children}</GlancyProvider>
Glancy then reports uncaught errors and unhandled promise rejections. Errors your code catches (in a React error boundary, around a payment call…) can be reported too, with properties:
try {
await pay(cart);
} catch (err) {
glancy.captureException(err, { step: "payment" });
}
Each page sends at most 20 errors and each one once, so a page that throws in a loop doesn't flood you. Noise that
says nothing about your site is skipped: errors from browser extensions, cross-origin Script error. without
details, and ResizeObserver warnings.
Server errors
withGlancyRoute() from the JavaScript and Next.js server SDKs
reports exceptions your route handlers throw, marked Server. Anywhere else on the server:
import { glancy } from "@caravela-studio/glancy-web/server";
await glancy().captureException(err, { path: "/api/checkout", userId: session.userId });
Issues
Errors with the same type, message and place in your code are one issue. Numbers, ids and quoted values in the message are ignored, as are the line numbers and build hashes that change with every deploy, so one bug stays one issue across releases.
The list shows, for the period you pick, each issue's errors, the sessions that hit it, how many of those sessions still converted, and the estimated revenue lost: the conversions those sessions would have had at the conversion rate of sessions without errors, valued at your average order. Issues first seen in the period are marked New. The tiles on top add it up for all issues, with the share of all sessions that hit an error.
The conversion event and revenue property are the ones in Ad spend settings (by default
Order Completed and revenue).
An issue
Open an issue to see:
- its errors over time, and the pages, browsers and devices where it happens,
- how sessions that hit it converted, against sessions without errors,
- carts left behind: sessions that hit it, added to cart or started checkout and didn't convert, with the
checkout value they left (the revenue property of their
Checkout Started, else itsvalue), - the latest sessions, with the person, page and whether they converted, and Watch replay, which opens the session's replay a few seconds before the error,
- Technical details: the stack trace and any properties sent with it.
Errors also show in a replay's timeline, in red, so you can see what the visitor did just before.
Alerts
Alert me on spikes on the Errors page, and Alert me when it happens on an issue, open a
notification rule filled in for you. A rule can watch all errors or one issue,
on all pages or on a pattern like /checkout*.
Allowance
Errors have their own monthly allowance, separate from billable events and never billed. At the allowance, new errors aren't stored until the next month. One issue stores at most 1,000 errors a day; after that it's only counted. See Usage.