Error tracking

Find out what broke before anyone writes in

Errors from your website and your server, grouped into issues and tied to the release that caused them. New and regressed issues show up in your live feed. Nothing in a report says who hit the error.

How it works

Add one tag, then fix what hurts the most people

  1. 1

    Add the script

    A separate tag under 1 KB on your site, the Node SDK on your server, or one API call from any language. Set your release so fixes can be tied to it.

  2. 2

    Errors become issues

    The same error from the same lines of your own code is one issue, counted with the visitors it hit. A redeploy keeps the issue together.

  3. 3

    Fix it and resolve it

    Resolve an issue in the release that fixes it. If it comes back in that release or a newer one, it reopens as regressed and posts to the feed.

What it replaces

Replaces a separate error tracker for small products

Most error trackers send IP addresses and cookies by default and keep a trail of what each person clicked. For a small site or app you mostly need to know what broke, where, since which release, and how many people it hit. That's what this does, next to your other numbers.

SentryBugsnagRollbarConsole logs you never read

What it does

  • Uncaught errors and unhandled rejections
  • Errors your code catches, with props
  • Node SDK with an Express handler
  • POST /v1/errors from any language
  • Grouped by type and your own frames
  • Open, resolved, resolved in a release, ignored
  • Regressions reopen and alert
  • Alerts in the feed's errors channel
  • Staging and preview never alert
  • Visitors affected per day, without identity
  • Emails, tokens and card numbers scrubbed
  • Errors never count toward your events

The code

One tag on the site, two lines on the server

Then ask your agent which error hit the most visitors today. It reads the issue with list_issues and get_issue, fixes it, and resolves it in the release that ships the fix.

index.html
<script src="https://api.pagebee.ai/errors.js"
  data-site="pb_pk_your_site_key"
  data-release="2.0.1"></script>
server.ts
import { Pagebee } from "@pagebee/node";

const pagebee = new Pagebee({
  secretKey: process.env.PAGEBEE_SECRET_KEY!,
  release: process.env.GIT_SHA,
});
pagebee.captureUnhandled();
app.use(pagebee.errorHandler());

Questions

Asked often

What does a report keep?

The error's type, message and stack, the page or route without its query string, the release, and the browser and OS. Never user ids, IP addresses, cookies, headers, request bodies or a trail of clicks. Emails, tokens, passwords, card numbers and phone numbers are taken out before anything is stored.

Do errors count toward my monthly events?

No. Every report is counted on every plan and none of them count toward your events. The samples behind each stack are kept for 90 days: up to 10,000 a month on Free and 250,000 on Grow, after which counting carries on and new samples wait for the next month.

Does it read source maps, or work in my iPhone app?

Not yet. Source maps need a private bucket we haven't added, and Swift and Kotlin capture come after them. Today it covers websites, web apps and servers.

Know what broke, and in which release

Free to 100,000 events a month, on every site you ship. No card.