[CI] (c05eaeb) next-js/15-pages-router-todo#106
Closed
wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
Closed
[CI] (c05eaeb) next-js/15-pages-router-todo#106wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
Conversation
Author
|
Now I have all the information I need. Let me compile the evaluation: PR Evaluation ReportSummaryThis PR integrates PostHog analytics into a Next.js 15 Pages Router Todo app. It adds client-side PostHog initialization via
Confidence score: 3/5 🤔
File changes
App sanity check: 2/5 ❌
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js@^1.321.1 added to dependencies |
| PostHog client initialized | No | instrumentation-client.ts will NOT be loaded in Pages Router - initialization is non-functional |
| capture() | Yes | Multiple posthog.capture() calls implemented for all CRUD operations |
| identify() | No | No posthog.identify() calls to associate events with users |
| Error tracking | Yes | posthog.captureException() called in all catch blocks with capture_exceptions: true |
| Reverse proxy | Yes | Properly configured in next.config.ts with rewrites to /ingest |
Issues
- PostHog will not initialize: The
instrumentation-client.tsapproach does not work with Pages Router. PostHog must be initialized in_app.tsx. Without initialization, allposthog.capture()calls intodo-list.tsxwill be no-ops. [CRITICAL] - No pageview tracking: Automatic pageview capture is not configured (
capture_pageviewoption not set), and there's no manual pageview tracking for route changes via Next.js Router events. [MEDIUM] - No user identification:
posthog.identify()is never called. Without identification, all events appear as anonymous users, limiting analytics value. [MEDIUM] NEXT_PUBLIC_POSTHOG_HOSTenv var unused: Theinstrumentation-client.tshardcodesapi_host: "/ingest"but the setup report claims it usesNEXT_PUBLIC_POSTHOG_HOST. This inconsistency is confusing. [LOW]
Other completed criteria
- Exception tracking enabled via
capture_exceptions: true - Debug mode correctly configured for development
defaults: '2025-05-24'option included- Reverse proxy correctly routes to US PostHog instance
- No PII captured in event properties
PostHog insights and events: 4/5 ✅
| Filename | PostHog events | Description |
|---|---|---|
todo-list.tsx |
todo_created, todo_completed, todo_uncompleted, todo_deleted |
Core user actions tracked - enables funnel analysis (create → complete), engagement metrics, and deletion patterns |
todo-list.tsx |
todos_fetch_failed, todo_create_failed, todo_update_failed, todo_delete_failed |
Error tracking events with error messages - enables reliability monitoring |
todo-list.tsx |
captureException (4 locations) |
Unhandled exceptions captured for error tracking dashboard |
Issues
- Events won't actually be captured: Due to the initialization issue, these well-designed events will never reach PostHog. [CRITICAL]
- Missing pageview events: No `` events captured, limiting session analysis. [MEDIUM]
Other completed criteria
- Events represent real user actions (create, complete, delete todos)
- Properties include relevant context (
todo_id,has_description,error) - Error events paired with success events for conversion analysis
- Events follow consistent naming convention (
todo_<action>,todo_<action>_failed) - No PII in event properties
Reviewed by wizard workbench PR evaluator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated wizard CI run
Trigger ID:
c05eaebApp:
next-js/15-pages-router-todoApp directory:
apps/next-js/15-pages-router-todoWorkbench branch:
wizard-ci-c05eaeb-next-js-15-pages-router-todoWizard branch:
mainExamples branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-01-14T16:15:33.871Z
Duration: 198.5s