What problem does it solve?
This Skill helps you reliably add PostHog error tracking to Web (JavaScript) apps so exceptions become searchable, group into issues, and can alert your team.
Core Features & Use Cases
- Exception autocapture setup: Enable exception autocapture early so
$exception events are recorded when errors happen.
- Manual error capture at boundaries: Use
captureException() in catch blocks or error boundaries for handled errors that wouldn’t reach the global handler.
- Source maps for readable stack traces: Upload source maps so stack traces resolve to original source code rather than minified bundles.
- Issue grouping via fingerprints: Ensure stable grouping by capturing accurate exception information and preserving stack traces where possible.
Quick Start
Install and initialize the PostHog JavaScript SDK, ensure posthog.init() runs before any captures, turn on exception autocapture, and then capture additional boundary errors with captureException() while uploading source maps during your build.