integration-nextjs-pages-router
CommunityAnalytics for Next.js Pages Router apps
Authordallasbpeters
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provide a structured, minimal-risk method to instrument and consume analytics in Next.js Pages Router apps using PostHog, enabling actionable insights without major refactors.
Core Features & Use Cases
- Client-side event tracking in Next.js Pages Router apps using PostHog's instrumentation points (e.g., instrumentation-client.ts) to capture user actions and feature usage.
- Server-side event capture via API routes or server utilities to ensure critical business operations are logged and correlated with user identity.
- Best practices for identifying users, error tracking, and aligning analytics with the Next.js Pages Router workflow.
Quick Start
Follow the workflow steps in this SKILL.md to enable PostHog in a Next.js Pages Router project and begin capturing key events and errors.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: integration-nextjs-pages-router Download link: https://github.com/dallasbpeters/tandra-peters-consulting/archive/main.zip#integration-nextjs-pages-router Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.