[CI] (4c70a79) nuxt/movies-nuxt-4 - #3869
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a Nuxt 4 movies app using a manual client-side plugin (
Confidence score: 5/5 🧙
File changes
App sanity check ✅
IssuesNo issues.
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js@^1.429.0 added to package.json dependencies |
| PostHog client initialized | Yes | posthog.init() called in posthog.client.ts plugin with api_host and defaults: '2026-01-30' |
| capture() | Yes | 5 custom events: login_completed, logout_completed, media_selected, trailer_started, search_submitted |
| identify() | No | No posthog.identify() call anywhere — login captures an event but never identifies the user |
| Error tracking | Yes | nuxtApp.hook('vue:error', ...) calls posthogClient.captureException(error) |
| Reverse proxy | No | No reverse proxy configured; events go directly to PostHog host |
Issues
- Missing
identify()on login: The login page (login.vue) captureslogin_completedbut never calls.identify(user.id, { ... }). All events remain attributed to anonymous IDs, making it impossible to build user-level analytics or link sessions across devices. Theusernamevalue is available in scope and should be used for identification after successful login. [CRITICAL] - Missing
reset()on logout:NavBar.vuecaptureslogout_completedbut never calls.reset(). Per PostHog docs,reset()should be called on logout to prevent the next user from inheriting the previous user's identity. [CRITICAL] - No reverse proxy: PostHog events are sent directly to the
NUXT_PUBLIC_POSTHOG_HOSTendpoint. For client-side apps, a reverse proxy is recommended to prevent ad blockers from intercepting tracking requests. [MEDIUM]
Other completed criteria
- API key loaded from environment variable via
runtimeConfig.public.posthog.publicKey - Host correctly loaded from environment variable via
runtimeConfig.public.posthog.host - Good dev-mode guard: throws descriptive error when env vars are missing
- Error tracking properly wired via Vue's
vue:errorlifecycle hook
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
pages/login.vue |
login_completed |
Captured after successful login — enables tracking auth conversion |
components/NavBar.vue |
logout_completed |
Captured on logout button click — tracks session endings |
components/media/Card.vue |
media_selected |
Captured with media_id and media_type properties — tracks content engagement |
components/media/Hero.vue |
trailer_started |
Captured with media_id — tracks trailer engagement |
pages/search.vue |
search_submitted |
Captured on search — tracks search usage |
plugins/posthog.client.ts |
captureException |
Vue error hook captures unhandled exceptions |
Issues
search_submittedlacks search term property: Theinput.valueis available in scope but not included as a property. Adding{ search_query: input.value }would enable search term analysis and failed-search insights. [MEDIUM]login_completedandlogout_completedhave no properties: While these events are valid, they lack any contextual properties. [LOW]
Other completed criteria
- Events represent real user actions (login, logout, content selection, search)
- Events enable product insights — can build funnels (search → select → trailer)
- No PII in event properties
- Event names use consistent
snake_caseconvention with descriptive action names
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:
4c70a79App:
nuxt/movies-nuxt-4App directory:
apps/nuxt/movies-nuxt-4Workbench branch:
wizard-ci-4c70a79-nuxt-movies-nuxt-4Wizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-09T22:28:47.698Z
Duration: 456.8s
YARA Scanner