[CI] (8ac6d56) next-js/15-app-router-saas#160
Closed
wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
Closed
[CI] (8ac6d56) next-js/15-app-router-saas#160wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
Conversation
Author
|
The files don't exist locally, so I'll evaluate the PR based on the diff provided. The diff contains complete information about all the changes made. PR Evaluation ReportSummaryThis PR integrates PostHog analytics into a Next.js 15 App Router SaaS application. It adds client-side initialization via
Confidence score: 2/5 ❌
File changes
App sanity check: 2/5 ❌
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js@^1.321.2 and posthog-node@^5.21.0 added to dependencies |
| PostHog client initialized | Yes | Client initialized in instrumentation-client.ts using Next.js 15.3+ pattern |
| capture() | Yes | 13 custom events captured across authentication, team management, and user actions |
| identify() | Partial | Called on form submit but before auth success is confirmed |
| Error tracking | Yes | capture_exceptions: true enabled in initialization |
| Reverse proxy | Yes | Properly configured in next.config.ts with /ingest rewrites to us.i.posthog.com |
Issues
- Premature user identification: In
login.tsx,posthog.identify(email)is called in theonSubmithandler before authentication completes. If login fails, the user is still identified with their email. Should identify only after successful authentication. [MEDIUM] - Questionable
defaultsproperty: Thedefaults: "2025-05-24"in instrumentation-client.ts is not a standard PostHog configuration option and may cause issues or be ignored. [MEDIUM] - Server client unused:
posthog-nodeis installed andlib/posthog-server.tsexports client functions, but they're never used. Consider adding server-side event tracking or removing the dead code. [LOW] - No pageview tracking documentation: While
instrumentation-client.tsinitializes PostHog, there's no explicit pageview capture setup mentioned. PostHog may auto-capture pageviews but this should be explicitly configured. [LOW]
Other completed criteria
- Proper API host configuration via
/ingestreverse proxy posthog.reset()called on sign-out for proper session handling- No PII in event properties (email presence tracked as boolean
has_email) skipTrailingSlashRedirect: trueset for PostHog compatibility- Debug mode enabled only in development
PostHog insights and events: 4/5 ✅
| Filename | PostHog events | Description |
|---|---|---|
login.tsx |
sign_in_submitted, sign_up_submitted |
Auth flow tracking with redirect/pricing context |
layout.tsx |
sign_out_clicked |
Session end tracking |
submit-button.tsx |
checkout_started |
Conversion funnel tracking |
dashboard/page.tsx |
manage_subscription_clicked, team_member_removed, team_member_invited |
Team and subscription management |
general/page.tsx |
account_updated |
Profile update tracking |
security/page.tsx |
password_updated, account_deletion_submitted |
Security actions and churn tracking |
terminal.tsx |
terminal_copy_clicked |
Homepage engagement |
homepage-buttons.tsx |
deploy_button_clicked, view_code_clicked |
CTA engagement tracking |
instrumentation-client.ts |
capturedException (auto) |
Error tracking enabled |
Issues
- Missing success/failure tracking: Events fire on form submission but don't track whether the action succeeded or failed. Consider adding success callbacks to capture outcomes. [MEDIUM]
Other completed criteria
- Events capture real user actions (auth, team management, subscription, account settings)
- Good event naming conventions (verb_noun pattern)
- Properties include relevant context (source, role, plan status)
- Conversion funnel events present (sign_up → checkout_started)
- Churn indicator event present (account_deletion_submitted)
- No PII leaked in 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:
8ac6d56App:
next-js/15-app-router-saasApp directory:
apps/next-js/15-app-router-saasWorkbench branch:
wizard-ci-8ac6d56-next-js-15-app-router-saasWizard branch:
feat-skill-based-integrationExamples branch:
test-skills-ciPostHog (MCP) branch:
feat-mcp-skill-deploymentTimestamp: 2026-01-14T21:27:35.933Z
Duration: 404.5s