The wizard has completed a deep integration of your TanStack Start project with PostHog analytics. The integration includes:
- Client-side tracking via
@posthog/reactwith thePostHogProviderwrapper in the root layout - Server-side tracking capability via
posthog-nodewith a singleton client insrc/lib/posthog-server.ts - Automatic pageviews, sessions, and web vitals tracking
- User identification on sign-in and sign-up events
- Exception capture on authentication and form errors
- Proxy configuration in Vite to route analytics through
/ingestfor better ad-blocker resistance
| Event Name | Description | File |
|---|---|---|
user_signed_up |
User completed sign-up form and created a new account | src/routes/auth/sign-up.tsx |
user_signed_in |
User successfully signed in to their account | src/routes/auth/sign-in.tsx |
standup_submitted |
User submitted their daily standup with completed/planned/blocker items | src/routes/app/standup.tsx |
standup_shared |
User created a public share link for their standup | src/routes/app/history.tsx |
standup_share_retracted |
User revoked a public share link for their standup | src/routes/app/history.tsx |
team_created |
Admin created a new team in the organization | src/routes/app/settings/teams.tsx |
team_member_added |
Admin added a member to a team | src/routes/app/settings/teams.tsx |
team_member_removed |
Admin removed a member from a team | src/routes/app/settings/teams.tsx |
member_invited |
Admin invited a new member to the organization via email | src/routes/app/settings/members.tsx |
member_deactivated |
Admin deactivated a member from the organization | src/routes/app/settings/members.tsx |
subscription_upgrade_started |
User initiated an upgrade to a paid subscription plan | src/routes/app/settings/billing.tsx |
subscription_cancelled |
User cancelled their subscription plan | src/routes/app/settings/billing.tsx |
subscription_restored |
User restored a previously cancelled subscription | src/routes/app/settings/billing.tsx |
api_key_created |
User created a new API key for integrations | src/routes/app/settings/api-keys.tsx |
api_key_revoked |
User revoked an existing API key | src/routes/app/settings/api-keys.tsx |
src/routes/__root.tsx- Added PostHogProvider wrappervite.config.ts- Added proxy configuration for/ingestendpointsrc/lib/posthog-server.ts- Created server-side PostHog client (new file).env- Added PostHog API key and host environment variables
We've built some insights and a dashboard for you to keep an eye on user behavior, based on the events we just instrumented:
- Analytics basics - Main dashboard with all insights
- User Signups & Logins - Track daily sign-ups and sign-ins over time
- Standup Activity - Track standup submissions over time
- Signup to Standup Funnel - Conversion funnel from user sign-up to first standup submission
- Team Management Activity - Track team creation and member management
- Subscription Events - Track subscription upgrades, cancellations, and restorations
We've left an agent skill folder in your project at .claude/skills/posthog-integration-tanstack-start/. You can use this context for further agent development when using Claude Code. This will help ensure the model provides the most up-to-date approaches for integrating PostHog.