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
This commit is contained in:
28
stop-services.sh
Executable file
28
stop-services.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# URL Tracker Tool V2 - Service Stop Script
|
||||
# This script stops both API and Frontend services cleanly
|
||||
|
||||
echo "$(date): Stopping URL Tracker Tool V2 services..." >> /var/log/catch-redirect.log
|
||||
|
||||
# Stop API service
|
||||
if [ -f /var/run/catch-redirect-api.pid ]; then
|
||||
API_PID=$(cat /var/run/catch-redirect-api.pid)
|
||||
echo "$(date): Stopping API service (PID: $API_PID)..." >> /var/log/catch-redirect.log
|
||||
kill $API_PID 2>/dev/null || true
|
||||
rm -f /var/run/catch-redirect-api.pid
|
||||
fi
|
||||
|
||||
# Stop Frontend service
|
||||
if [ -f /var/run/catch-redirect-frontend.pid ]; then
|
||||
FRONTEND_PID=$(cat /var/run/catch-redirect-frontend.pid)
|
||||
echo "$(date): Stopping Frontend service (PID: $FRONTEND_PID)..." >> /var/log/catch-redirect.log
|
||||
kill $FRONTEND_PID 2>/dev/null || true
|
||||
rm -f /var/run/catch-redirect-frontend.pid
|
||||
fi
|
||||
|
||||
# Force kill any remaining processes
|
||||
pkill -f "node dist/index.js" || true
|
||||
pkill -f "serve dist" || true
|
||||
|
||||
echo "$(date): All services stopped" >> /var/log/catch-redirect.log
|
||||
Reference in New Issue
Block a user