[CI] (6fb03e7) laravel/laravel12-saas#1474
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a Laravel 12 SaaS application using both the PHP SDK (
Confidence score: 5/5 🧙
File changes
App sanity check ✅
IssuesNo issues.
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog/posthog-php ^4.3 added to composer.json; client-side JS snippet added via standard PostHog loader |
| PostHog client initialized | Yes | Server: PostHog::init() in AppServiceProvider::boot() with api_key and host from config. Client: JS snippet in app.blade.php with posthog.init() |
| capture() | Yes | 8 meaningful events across auth, subscription, billing, and account deletion flows |
| identify() | N/A | Server-only architecture. (Note: PR implements identify both server and client-side, which is good practice) |
| Error tracking | No | No error/exception tracking configured on either client or server side |
| Reverse proxy | N/A | Server-only architecture |
Issues
- No error tracking: Neither
PostHog::captureException()nor client-sideposthog.captureException()is configured. Adding error tracking would provide visibility into application errors. [MEDIUM]
Other completed criteria
- API key loaded from environment variable via
config('posthog.api_key')— not hardcoded - Host correctly configured via
config('posthog.host')with defaulthttps://us.i.posthog.comin.env.example - Disabled flag allows toggling PostHog off without code changes
- PostHogService wrapper follows Laravel service pattern with static methods
- Client-side JS conditionally loads only when API key is present and not disabled
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
register.blade.php |
user_signed_up |
Tracks new user registration with identify call |
login.blade.php |
user_logged_in |
Tracks email/password login with identify call |
SocialiteController.php |
user_logged_in_with_google |
Tracks OAuth login with provider and is_new_user flag |
SubscriptionController.php |
subscription_page_viewed, subscription_checkout_started, subscription_plan_swapped |
Full subscription funnel with plan details (id, name, price) |
RedirectToBillingPortal.php |
billing_portal_accessed |
Tracks Stripe billing portal redirects |
delete-user-form.blade.php |
user_account_deleted |
Tracks account deletion before logout |
app.blade.php |
Client-side ``, identify |
Auto-pageview tracking and authenticated user identification |
Issues
- PII in
user_signed_upevent properties: Theuser_signed_upcapture call passesemailandnameas event properties. SincePostHogService::identify()is called immediately before with the same data, these person properties are already set on the user profile. Removeemailandnamefrom thecapture()properties array to avoid PII on events. [MEDIUM]
Other completed criteria
- Events represent real user actions mapping to actual SaaS product flows (signup → login → subscribe → upgrade → churn)
- Subscription events enable a conversion funnel:
subscription_page_viewed→subscription_checkout_started→subscription_plan_swapped - Events enriched with relevant properties (plan_id, plan_name, plan_price, provider, is_new_user, demo_mode)
- Event naming is consistent snake_case 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: scheduled
Trigger ID:
6fb03e7App:
laravel/laravel12-saasApp directory:
apps/laravel/laravel12-saasWorkbench branch:
wizard-ci-6fb03e7-laravel-laravel12-saasWizard branch:
mainContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-05-13T17:23:31.160Z
Duration: 499.5s