error-tracking-web

Integrates PostHog JavaScript SDK for client-side error tracking and autocapture in web apps.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill error-tracking-web
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-tracking-web
Source: https://github.com/PostHog/skills/tree/main/skills/posthog/all/skills/error-tracking-web
Command: npx skills add https://github.com/PostHog/skills --skill error-tracking-web

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PostHog error tracking for Web (JavaScript) helps developers monitor and diagnose client-side errors by integrating the PostHog JavaScript SDK and configuring error reporting in web applications.

Core Features & Use Cases

  • Client-side error capturing with PostHog
  • Autocapture of page interactions and errors across single-page apps and traditional web pages
  • Guidance on configuring source maps and alerts to surface issues quickly
  • Use case: instrument a web app to capture and triage exceptions, view issue details, and alert on critical errors

Quick Start

Add PostHog error tracking to your Web (JavaScript) application.

Frequently Asked Questions about error-tracking-web

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add PostHog error tracking to a JavaScript web app?

To add PostHog error tracking, integrate the PostHog JavaScript SDK and initialize it using posthog.init before calling other methods to capture client-side exceptions and autocapture page interactions.

Does PostHog error tracking work with single-page app frameworks?

Yes, PostHog error tracking works with single-page app frameworks and traditional websites, capturing client-side errors and autocapturing page interactions across both architectures.

What are the privacy guidelines for PostHog autocapture in web applications?

PostHog autocapture privacy guidelines require avoiding PII in event properties to ensure user data protection when instrumenting web applications for error tracking and page interaction capture.

Why do I need to configure source maps for PostHog error tracking?

Configuring source maps for PostHog error tracking surfaces issues quickly by mapping minified client-side JavaScript errors back to original source code, enabling accurate issue diagnosis and triage.

Can I set up alerting for critical client-side errors using PostHog?

Yes, you can configure alerting in PostHog to surface critical client-side errors quickly, allowing you to triage exceptions, view issue details, and alert on important web application failures.

What is the best way to monitor client-side exceptions in a web application?

The best way to monitor client-side exceptions is using PostHog's JavaScript SDK to instrument error reporting, enabling autocapture, issue management, and source map configuration for web application diagnosis.