2 Commits

Author SHA1 Message Date
Andrei
634636a03e Fix dashboard authentication and routing issues
- Fix NODE_ENV=production cookie security issue for local development
- Add production API URL configuration (.env.production)
- Enable SPA routing with serve -s flag for frontend
- Fix React hooks violation in DashboardPage (error #310)
- Move useQuery hooks before conditional returns
- Rebuild frontend with all fixes applied

Resolves dashboard 401 errors, 404 routing issues, and React error #310
2025-08-23 19:53:33 +00:00
Andrei
6e41d9874d feat: Add Google Analytics integration and fix anonymous tracking
- Add Google Analytics tracking (G-ZDZ26XYN2P) to frontend
- Create comprehensive analytics utility with event tracking
- Track URL submissions, analysis results, and user authentication
- Add route tracking for SPA navigation
- Fix CORS configuration to support both localhost and production
- Fix home page tracking form to display results instead of auto-redirect
- Add service management scripts for easier deployment
- Update database migrations for enhanced analysis features

Key Features:
- Anonymous and authenticated user tracking
- SSL/SEO/Security analysis event tracking
- Error tracking for debugging
- Page view tracking for SPA routes
- Multi-origin CORS support for development and production
2025-08-23 17:45:01 +00:00