Comma DocsComma Docs
Home
  • REST API
  • GraphQL API
Components
Infrastructure
  • Django
  • Vue.js
  • PrimeVue
  • Tailwind CSS
  • Prompts
  • Architecture
  • Labs
  • Dev
  • Deployment
  • Operations
  • Future Work
GitHub
Home
  • REST API
  • GraphQL API
Components
Infrastructure
  • Django
  • Vue.js
  • PrimeVue
  • Tailwind CSS
  • Prompts
  • Architecture
  • Labs
  • Dev
  • Deployment
  • Operations
  • Future Work
GitHub
  • Overview

    • Comma Project Documentation
    • Documentation Guidelines (CLAUDE.md)
    • Analytics Cleanup Summary
    • CI/CD Pipeline Fixes
    • Magenta Domain Change Summary
    • Magenta Analytics Installation Guide
    • Magenta Tracking Pixel Specification
    • Metabase Setup Guide

Analytics Cleanup Summary

Current Status (as of production fix)

✅ Working Analytics

  • Google Analytics 4: Configured and working
  • Google Tag Manager: Configured and working
  • Mixpanel: Configured with enhanced tracking

❌ Temporarily Disabled

  • Magenta Analytics: Disabled until infrastructure is ready
    • CloudFront distribution needs configuration
    • S3 bucket permissions need setup
    • DNS for magenta.comma.cm needs configuration
    • Analytics server needs deployment

Files Cleaned Up

Frontend

  • /frontend/index.html: Removed broken Magenta integration

Django Templates

  • Analytics still included via analytics_head.html template
  • Magenta conditionally included but disabled by default

Production Coming-Soon Page

  • Emergency fix provided to remove all analytics
  • Working snippet with GA + Mixpanel only provided in /scripts/WORKING-GA-MIXPANEL-ONLY.html

Next Steps (for tomorrow)

  1. Configure S3 bucket permissions for magenta.min.js
  2. Set up CloudFront distribution properly
  3. Configure DNS for magenta.comma.cm
  4. Deploy Magenta analytics server
  5. Test Magenta end-to-end
  6. Re-enable Magenta in production

Key Learnings

  • Always verify external resources are accessible before deploying
  • Test analytics scripts in staging before production
  • Infrastructure prerequisites must be in place before code deployment
  • Production deployments should be incremental and reversible
Edit this page on GitHub
Last Updated: 6/23/25, 7:11 AM
Contributors: Scott de Rozic
Prev
Documentation Guidelines (CLAUDE.md)
Next
CI/CD Pipeline Fixes