error-tracking-node

Integrate PostHog exception autocapture into Node.js applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Node.js applications often lack centralized, consistent error reporting; this skill integrates PostHog error tracking to automatically capture, report, and surface exceptions in Node.js apps.

Core Features & Use Cases

  • Automatic exception autocapture via the PostHog Node.js SDK
  • Seamless integration with Express and other Node.js frameworks for route-level error tracking
  • Use case: monitor production server errors and automatically correlate them to issues for faster triage

Quick Start

Initialize PostHog in your Node.js application and enable exception autocapture.

Frequently Asked Questions about error-tracking-node

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

FAQPage Schema
How do I track Node.js exceptions with PostHog?

To track Node.js exceptions with PostHog, initialize the PostHog Node.js SDK with enableExceptionAutocapture set to true. This automatically captures and reports server-side exceptions for centralized error monitoring in your application.

Can I use PostHog error tracking with Express middleware?

Yes, PostHog error tracking works with Express middleware. You can set up an optional Express error handler to capture route-level errors and report them directly to PostHog for faster issue triage.

Does PostHog exception autocapture support Fastify and Koa?

Yes, PostHog exception autocapture supports Fastify and Koa. The error tracking integration is applicable to server-side Node.js apps built with Express, Fastify, Koa, or plain Node servers.

What is the best way to monitor production server errors in Node.js?

The best way to monitor production server errors in Node.js is using PostHog's exception autocapture feature. It automatically captures, reports, and surfaces exceptions to issues for faster triage.

Do I need the posthog-node package to enable error tracking?

Yes, you need the posthog-node package to enable error tracking. It provides the SDK required to initialize PostHog with enableExceptionAutocapture set to true for capturing exceptions in your application.