Commit Graph

4 Commits

Author SHA1 Message Date
Amit Sharma 7e176a620e fix: updated posthog init function to mask everything in session replays 2025-08-04 19:47:09 -07:00
Amit Sharma f7fe55d95a fix: updated per @paabloLC request to move Posthog initialization outside of providers.tsx 2025-07-30 16:45:30 -07:00
Amit Sharma c7e4c3d839 fix: resolved linting and prettier issues for formating 2025-07-30 16:02:30 -07:00
Amit Sharma bc34c9df4a feat: centralize PostHog analytics with proper error handling
- Create lib/analytics.ts with centralized tracking functions
- Use arrow functions and camelCase naming per code standards
- Add error handling to prevent analytics failures from crashing app
- Update auth forms and provider workflows to use new analytics lib
- Export TypeScript interfaces for type-safe analytics payloads

Addresses PR review comments:
- Convert to arrow functions (requested by @paabloLC)
- Use camelCase for event and property names
- Centralize analytics logic for better maintainability
2025-07-29 19:49:12 -07:00