Repository navigation
[CI] (22322bc) next-js/15-pages-router-todo - #3645
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 installs
Confidence score: 5/5 🧙
File changes
App sanity check ✅
IssuesNo 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-based token/host and capture_exceptions: true |
| capture() | Yes | Three meaningful capture calls: todo_created, todo_completion_changed, todo_deleted |
| identify() | No | No posthog.identify() call anywhere — users remain anonymous |
| Error tracking | Yes | capture_exceptions: true enabled in init config |
| Reverse proxy | No | No Next.js rewrites or middleware proxy configured |
Issues
- Missing user identification: No
posthog.identify()is called anywhere in the app. All events are attributed to anonymous users, making it impossible to build user-level funnels or retention analysis. Add an identify call when user context is available (e.g., after login or on app load if authenticated). [CRITICAL] - No reverse proxy: No Next.js rewrites are configured to proxy PostHog requests. Events sent directly to
us.i.posthog.commay be blocked by ad blockers. Configurenext.config.jsrewrites or use PostHog's managed reverse proxy. [MEDIUM]
Other completed criteria
- API key loaded from
NEXT_PUBLIC_POSTHOG_PROJECT_TOKENenvironment variable - Host correctly configured from
NEXT_PUBLIC_POSTHOG_HOSTenvironment variable - Validation throws in development when env vars are missing
- Error tracking enabled via
capture_exceptions: true
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
instrumentation-client.ts |
capture_exceptions |
Automatic exception capture for error tracking |
components/todos/todo-list.tsx |
todo_created, todo_completion_changed, todo_deleted |
Tracks full todo lifecycle — creation, completion toggle, and deletion with contextual properties |
Issues
- Outdated defaults date:
defaults: '2026-01-30'is used instead of the current'2026-05-30'. Update to benefit from the latest default configuration improvements. [LOW]
Other completed criteria
- Events represent real user actions (creating, completing, deleting todos)
- Events enable product insights — can build a todo completion funnel or track engagement
- Events include relevant properties (
todo_id,completed,has_description) - No PII in event properties — only IDs and booleans
- Event names are descriptive and use 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:
22322bcApp:
next-js/15-pages-router-todoApp directory:
apps/next-js/15-pages-router-todoWorkbench branch:
wizard-ci-22322bc-next-js-15-pages-router-todoWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-08-28T19:21:28.265Z
Duration: 236.9s
YARA Scanner