[CI] (6b2dc8b) sveltekit/CMSaasStarter - #3741
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a SvelteKit-based SaaS starter app (CMSaasStarter). It adds client-side initialization via
Confidence score: 5/5 🧙
File changes
App sanity check ✅
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js@^1.419.0 added to package.json |
| PostHog client initialized | Yes | Initialized in hooks.client.ts init() export with env var validation |
| capture() | Yes | Multiple meaningful capture calls across the app |
| identify() | Yes | Uses data.user.id (Supabase auth user ID) as distinct_id with email as person property; reset() called on sign out |
| Error tracking | Yes | capture_exceptions: true in init config + handleError hook with captureException |
| Reverse proxy | No | No reverse proxy configured for client-side tracking |
Issues
- Missing
defaultsconfig option: Theposthog.init()call should includedefaults: '2026-05-30'to use the recommended default configuration snapshot. Without it, PostHog uses legacy defaults which may not align with current best practices. [MEDIUM] - No reverse proxy: Client-side PostHog events are sent directly to
us.i.posthog.com, making them susceptible to ad blocker interception. A reverse proxy (e.g., via SvelteKit rewrites or managed proxy) would improve reliability. [MEDIUM]
Other completed criteria
- API key loaded from environment variable (
PUBLIC_POSTHOG_PROJECT_TOKEN) - Host correctly configured from environment variable (
PUBLIC_POSTHOG_HOST) paths.relative: falseset insvelte.config.jsfor session replay SSR compatibility- Proper dev-mode error throwing when env vars are missing
posthog.reset()called onSIGNED_OUTauth event- Identify called both on mount (for returning users) and on
SIGNED_INevent
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
hooks.client.ts |
captureException |
Captures unhandled client errors via SvelteKit's handleError hook |
settings_module.svelte |
Dynamic via analyticsEvent prop |
Captures on successful form submission and redirects |
change_password/+page.svelte |
password_reset_requested, password_changed |
Tracks password reset email requests and password changes |
change_email_subscription/+page.svelte |
email_subscription_changed |
Tracks email subscription toggle |
delete_account/+page.svelte |
account_deletion_requested |
Tracks account deletion requests |
edit_profile/+page.svelte |
profile_updated |
Tracks profile edits |
create_profile/+page.svelte |
profile_created |
Tracks new profile creation |
contact_us/+page.svelte |
contact_request_submitted |
Tracks contact form submissions |
pricing_module.svelte |
plan_selected |
Tracks pricing plan selection with plan_id property |
Other completed criteria
- Events represent real user actions tied to actual product flows (account management, pricing, contact)
- Events enable product insights — can build signup→profile creation→plan selection funnel
plan_selectedevent enriched withplan_idproperty- No PII in event properties — email only used in
identify()person properties - Consistent snake_case naming convention across all events
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:
6b2dc8bApp:
sveltekit/CMSaasStarterApp directory:
apps/sveltekit/CMSaasStarterWorkbench branch:
wizard-ci-6b2dc8b-sveltekit-CMSaasStarterWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-01T16:03:39.827Z
Duration: 486.9s
YARA Scanner