Repository navigation
[CI] (33127b6) next-js/15-pages-router-todo - #3669
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
PR Evaluation ReportSummaryThis PR adds a client-side PostHog integration to a Next.js 15 pages router todo app. It initializes PostHog via
Confidence score: 5/5 🧙
File changes
App sanity check ✅
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js@^1.422.5 added to package.json |
| PostHog client initialized | Yes | Initialized in instrumentation-client.ts with env var validation |
| capture() | Yes | Three meaningful capture calls: todo_created, todo_completion_changed, todo_deleted |
| identify() | No | No posthog.identify() call anywhere; all events remain anonymous |
| Error tracking | Yes | capture_exceptions: true in init config |
| Reverse proxy | No | No Next.js rewrites or proxy middleware configured |
Issues
- Missing user identification: No
posthog.identify()is called on login or page load. All events are anonymous, which prevents linking sessions to known users and limits analytics capabilities. Should add identify after authentication. [MEDIUM] - No reverse proxy: Direct browser-to-PostHog requests will be blocked by ad blockers. Next.js rewrites in
next.config.jsshould be configured to proxy/ingest/*to PostHog, andapi_hostupdated accordingly. [MEDIUM]
Other completed criteria
- API key loaded from
NEXT_PUBLIC_POSTHOG_PROJECT_TOKENenvironment variable - Host configured from
NEXT_PUBLIC_POSTHOG_HOSTenvironment variable - Error tracking enabled via
capture_exceptions: true - Debug mode correctly gated to development environment
- Initialization correctly placed in
instrumentation-client.tsper Next.js docs
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
todo-list.tsx |
todo_created |
Tracks new todo creation with total_todos count and has_description flag |
todo-list.tsx |
todo_completion_changed |
Tracks toggling completion with completion_state property |
todo-list.tsx |
todo_deleted |
Tracks todo deletion with remaining_todos count |
instrumentation-client.ts |
captureException (auto) |
Automatic exception capture via capture_exceptions: true |
Issues
No critical or medium issues with event quality.
Other completed criteria
- Events represent real user actions (create, complete, delete todos)
- Events enable product insights — can build create→complete funnel, retention on creation
- Events include contextual properties (counts, states, description presence)
- No PII in event properties
- Event names are descriptive, consistent snake_case convention
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
Source: wizard-pr
Trigger ID:
33127b6App:
next-js/15-pages-router-todoApp directory:
apps/next-js/15-pages-router-todoWorkbench branch:
wizard-ci-33127b6-next-js-15-pages-router-todoWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-08-28T22:29:27.675Z
Duration: 271.4s
YARA Scanner