Traffic analytics via GA4, server-side achievement tracking, admin dashboard, and 2 AI agent skills for student metrics reports and GA4 event auditing.
Page views, forum events (thread_create, reply_create, vote, search), custom GTM tags/triggers/variables. Traffic-level analytics with dataLayer push via trackEvent() utility. GTM container config committed to repo.
GA4
GTM
dataLayer
Custom events
16 server-computed achievements across 4 categories: milestones (first lesson, level completions), streaks (3/7/30 day), speed (complete 5 lessons in a day), and mastery (complete all lessons in a level). Toast notifications on unlock, progress stats on dashboard.
PostgreSQL
Server-side
16 achievements
Student list with progress, level/lesson management, site settings, AI onboarding usage stats (totals + provider split), palette management, forum moderation, TTS configuration. Operational visibility for one admin.
React
Admin API
JWT auth
Generates weekly/monthly student metrics reports by querying production PostgreSQL via Render MCP. Covers signups, active students, lesson completion rates by level, streak analysis, forum activity, peer help stats, and AI onboarding adoption.
/analytics-report
weekly | monthly
--preview
Cross-references all trackEvent() calls in the codebase against the GTM container JSON. Identifies orphaned events (in code but no GTM tag), stale tags, and generates a complete event catalog. Can auto-fix GTM config on a feature branch.
/analytics-ga4
audit | events | traffic
--fix
No funnel analysis, no cohort tracking, no drop-off detection. Can't answer "where do students stop?" or "what % complete level 1?" GA4 is good for traffic, weak for product behavior. Need PostHog or similar.
PostHog?
Mixpanel?
No framework for testing onboarding flows, lesson formats, pricing pages, or engagement experiments. No feature flags beyond admin toggles.
PostHog?
GrowthBook?
Roadmap
2 AI skills active. Next: PostHog product analytics integration, cohort retention analysis, A/B testing framework.