Multi-Site Analytics Technology Stack

Complete technology stack for enterprise-grade multi-site analytics system

Core Technology Stack

Technology Overview ├── Frontend Layer │ ├── Next.js (Dashboard Interface) │ ├── React (Component Architecture) │ ├── TypeScript │ └── Tailwind CSS │ ├── Backend Services │ ├── Matomo Analytics Engine │ ├── MariaDB/MySQL │ ├── Node.js API Services │ └── JWT Authentication │ ├── Infrastructure │ ├── Docker & Docker Compose │ ├── Portainer CE │ ├── Caddy Server │ └── Gitea │ └── Development Tools ├── Local Dev Environment ├── Hot Reload ├── Testing Framework └── CI/CD Pipeline

Service Architecture

Service Layout ├── Analytics Engine (Matomo) │ ├── Website ID: deafmissoula.org │ ├── Website ID: chrishaulmark.com │ ├── Website ID: deafgain.sigd.net │ └── Website ID: finlion.sigd.net │ ├── Database Layer │ ├── MariaDB Primary │ └── Automated Backups │ ├── Access Control │ ├── JWT Authentication │ ├── Role-Based Access │ └── Individual Dashboards │ └── Monitoring ├── Container Health ├── Resource Usage ├── Performance Metrics └── Security Logs

Network Architecture

Network Layout ├── External Traffic │ └── Caddy (SSL Termination) │ ├── Internal Networks │ ├── caddy_network │ │ ├── Website Containers │ │ └── Analytics Dashboard │ │ │ ├── analytics_network │ │ ├── Matomo │ │ └── MariaDB │ │ │ └── gitea_network │ ├── Gitea │ └── MariaDB │ └── Monitoring Network ├── Portainer └── Health Checks

Features Per Website

Dashboard Features ├── Real-Time Analytics │ ├── Visitor Statistics │ ├── Page Views │ ├── User Behavior │ └── Heatmaps │ ├── Reporting │ ├── Custom Date Ranges │ ├── Data Export │ ├── Referrer Tracking │ └── E-commerce Tracking │ └── Administration ├── User Management ├── Access Control ├── API Integration └── GDPR Tools

Deployment & Operations

Operations Flow ├── Deployment │ ├── Gitea Push │ ├── Automated Tests │ └── Container Updates │ ├── Maintenance │ ├── Daily Backups │ ├── Security Updates │ ├── Log Archiving │ └── Performance Monitoring │ └── Scaling ├── Resource Management ├── Load Balancing └── Capacity Planning
Implementation Note: Each website gets its own isolated analytics instance while sharing the underlying infrastructure for cost efficiency. Matomo provides enhanced privacy features and GDPR compliance tools.