Error tracking screenshot
Just another hedgehog
Error Tracking

Track errors and resolve issues

Error tracking is one of the tools that makes your product self-driving: every exception is tied to the user who hit it, so agents have the context to ship the fix. Built to natively work with product analytics, session replay, and feature flags.

Get started - free

Install with AI in a single prompt

Paste into your terminal or code editor and make AI do the work.

Learn more

MCPWatch a demoTalk to a human

What does it do?

A hedgehog investigating an error

Error Tracking captures exceptions from across your stack and turns them into issues you can prioritize, assign, and resolve. Because PostHog already knows what's happening in your product, every issue comes with the affected user's session replay, events, and properties attached – so you can see what went wrong instead of trying to reproduce it.

Who is it for?

Error Tracking is used across teams depending on your role.

Role
Use cases
Product & Growth Engineers
Get notified when new issues happen, identify impact, and have the context to ship the fix
Founders
Know when early users hit any exception – especially valuable when shipping multiple times a week
Support Engineers
Pull quick context on user-reported errors to triage severity and share details with product engineers
DevOps / SRE
Control cost, track releases, and group high-volume exceptions (coverage still growing)

How do I use it?

There are a few ways to explore Error Tracking.

Debug errors from your editor

Triage issues, inspect stack traces, and generate fixes from Cursor, Claude Code, VS Code, or any MCP-compatible agent.

Inspect error details
Give your agent access to full stack traces, error messages, and relevant metadata.
Reproduce errors
Identify failure points and perform root cause analysis using the captured stack trace context.
Debug and create fixes
Prompt your agent to generate code fixes based on the error details.
Update issue status
Mark issues as resolved, archived, suppressed, or pending release directly from your code editor.

Install the PostHog MCP

Learn more
npx @posthog/wizard mcp add

Supports Next.js, React, Python, and

Top features

Stack traces

Get code context automatically with PostHog's server-side libraries, or upload source maps for front-end frameworks

Stack traces

AI prompts

Ask PostHog AI to find issues, inspect stack traces, and help ship the fix. Works in PostHog AI (in-app chat), PostHog Desktop (our AI code editor), and in your product editor (using the MCP). Already signed in? Click a prompt to try it.

Install

SDKs for web, mobile, and backend – then upload source maps so stack traces stay readable.

Feature comparison

Bugsnag
Datadog
GlitchTip
LogRocket
compare
Rollbar
Sentry
compare
SigNoz
Code context
See the code related to the issue
Error alerts
Get notified in real time by email, Slack, or webhook when issues occur
Realtime error capture
Automatically capture and report errors as they happen
Issue management
Manage and organize error issues with assignment and status tracking
Error grouping & deduplication
Automatically group similar errors and remove duplicates
Log management
Aggregate and analyze logs in real-time to correlate events, identify issues, and gain insight into system performance
Beta
Stack tracing
Track the path of a request across your system
Console log capture
Capture console logs alongside error events
Mobile SDK coverage
SDKs for iOS, Android, and mobile frameworks
Partial
Profiling
Monitor and visualize code performance
User & device context
Capture user and device details with errors
Monitoring
Visibility into performance and releases
Cron monitoring
Track scheduled job health
Distributed tracing
Follow a request across services to identify latency bottlenecks and inter-service dependencies
Alpha
Performance monitoring
Trace requests or queries and profile functions
Release and deploy tracking
Track errors by release version and deployment
Partial
Source map support
Support for source maps in minified code
Integrations
Connect error context with other tools and datasets
Integration with product analytics
Connect error data with product usage analytics
Integration with session replay
Link errors to session recordings for context
Integration with A/B experiments
Connect error tracking with experimentation platform

Questions?

Answers

There are a few ways you can get answers to specific questions about Error Tracking.

  1. Check the docs

    We have an entire docs-wizard dedicated to docs gardening.

  2. Search the community forums

    94 discussions about Error Tracking, there's a good chance your answer is already answered!

  3. Ask PostHog AI

    It's an incredibly useful AI chat that understands the product, docs, community questions, our codebase, GitHub issues, and industry knowledge.

  4. Talk to a human

    Dedicated humans are standing by and ready to assist. Best for questions about volume pricing, terms, and sexy legal stuff.

Recent discussions

Works with other PostHog tools

Use Error Tracking with these other PostHog apps to maximize shareholder value.

Works with...

  • Session Replay

    Watch exactly how an error occurred for a specific user

  • Product Analytics

    Analyze trends over time and get alerts when things go wrong

  • Feature Flags

    Roll back features that cause errors, or test fixes with slow rollouts

Get started – free

No credit card required. You get the first 100,000 exceptions free every month, then pricing starts at $0.00037/exception and reduces with volume.

Install with AI

Run this command in your terminal or AI editor.
npx -y @posthog/wizard@latest

Supports Next.js, React, Python, and

Install without AI

Sign up for a free account and follow the install instructions for your stack.

Get started - free