Analytics Integration

Hybrid Flask + Node.js Architecture for Enhanced Business Intelligence

Flask Backend Service

Core business logic, customer management, and data processing

Core Capabilities:
  • Customer communication automation
  • Monthly business reporting
  • Stripe payment processing
  • PDF generation and tracking
  • YouTube study plan creation
  • Webhook handling and testing
Active Port 5000 Primary Service

Node.js Analytics Service

Real-time analytics, advanced charting, and interactive dashboards

Analytics Features:
  • Real-time metrics and notifications
  • Interactive Chart.js visualizations
  • Socket.io live data streaming
  • Training progress analytics
  • Subscription growth tracking
  • Event tracking and monitoring
Not Started Port 3001 Analytics Engine
Service Integration Status
Flask → Node.js

Event tracking API

Checking connection...
Real-time Dashboard

Socket.io connection

Open Dashboard
Health Monitoring

Service status checks

Enhanced Analytics Capabilities
Real-time Tracking:
  • PDF Downloads: Track usage and popular training plans
  • YouTube Views: Monitor study plan engagement
  • Subscriptions: Live subscription events and notifications
  • Technique Progress: Real-time completion tracking
Advanced Visualizations:
  • Training Charts: 12-week progress visualization
  • Revenue Analytics: Monthly growth and MRR tracking
  • Subscription Trends: Growth and churn analysis
  • Live Notifications: Real-time event streaming
Quick Actions
Getting Started
  1. Start the Node.js analytics service: node analytics_server.js
  2. The analytics dashboard will be available at http://localhost:3001/analytics-dashboard.html
  3. Flask will automatically send events to the analytics service for real-time tracking
  4. Use the dashboard to monitor training progress, subscriptions, and user engagement