Investigate site errors and user sessions
Identify common errors, view stack traces, and understand user context before errors occurred to facilitate debugging and code fixes.
How it works
Read-onlySoftware development
The agent uses the Betterlytics MCP server to access error tracking data. It lists captured errors, inspects stack traces, and retrieves the session trail leading up to each error. This allows developers to understand where in the code an error is occurring and what the user was doing immediately before the error, enabling faster resolution of bugs and improved site stability.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Investigate site errors and user sessions
What are the most common errors on my site this week? Show me the stack trace for the TypeError that’s affecting the most users and walk me through the session trail.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
Error tracking : list captured errors, inspect stack traces, and see the session trail leading up to each errorMCP Server - Betterlytics Docs