error-tracking-nextjs

Installation
SKILL.md

PostHog error tracking for Next.js

This skill helps you add PostHog error tracking to Next.js applications.

Reference files

  • references/nextjs.md - Next.js error tracking installation - docs
  • references/fingerprints.md - Fingerprints - docs
  • references/alerts.md - Send error tracking alerts - docs
  • references/monitoring.md - Monitor and search issues - docs
  • references/assigning-issues.md - Assign issues to teammates - docs
  • references/upload-source-maps.md - Upload source maps - docs

Consult the documentation for API details and framework-specific patterns.

Key principles

  • Environment variables: Always use environment variables for PostHog keys and host URLs. Never hardcode them.
  • Minimal changes: Add error tracking alongside existing error handling. Don't replace or restructure existing error handling code.
Related skills
Installs
85
Repository
posthog/skills
GitHub Stars
34
First Seen
Mar 28, 2026