HUB
Sign inSign up

connerpowell/mailchimp-pipeline

By connerpowell

•Updated 6 months ago

Mailchimp campaign data into reporting‑ready outputs

Image
Data science
Web analytics
0

613

connerpowell/mailchimp-pipeline repository overview

⁠Mailchimp Analytics Pipeline (Docker)

A containerized analytics pipeline for ingesting, transforming, and modeling Mailchimp campaign data into reporting‑ready outputs using a Bronze → Silver → Gold architecture.

⁠Overview

This Docker image runs the full Mailchimp analytics pipeline in a single command. It is designed for monthly batch execution and produces curated, business‑ready reporting outputs with no state stored inside the container.

All data is externalized via mounted volumes, making the pipeline reproducible, portable, and scheduler‑friendly.

⁠Architecture

The pipeline follows a medallion architecture:

  • Bronze: Raw Mailchimp JSON exports (campaigns, clicks, email activity)
  • Silver: Flattened and normalized datasets written as Parquet/Delta
  • Gold: Curated analytics and Excel dashboard outputs

Consultant attribution is derived from campaign metadata and enriched with regional mappings during Gold processing.

⁠Expected Data Layout

The container expects the following directory structure to be mounted:

⁠Key Features

  • Monthly Mailchimp ingestion
  • Raw JSON archival for traceability
  • Silver-layer normalization into Parquet and Delta
  • Gold-layer reporting tables for campaign and consultant analysis
  • Local and Azure-backed execution support
  • DuckDB-based validation and exploratory querying

⁠Repository Structure

mailchimp_analytics_pipeline/
├── dashboards/
│   └── Dashboard and reporting artifacts
│
├── docs/
│   ├── architecture.md
│   ├── data_dictionary.md
│   ├── dashboard_guide.md
│   └── assumptions.md
│
├── pipelines/
│   ├── bronze_ingest.py
│   ├── silver_transform.py
│   └── gold_aggregate.py
│
├── notebooks/
│   └── Validation and exploratory analysis
│
├── tests/
│   ├── test_bronze.py
│   ├── test_silver.py
│   └── test_gold.py
│
└── README.md

⁠Data Flow

  1. Mailchimp campaign and report data is pulled from the API.
  2. Raw JSON is written to the bronze layer.
  3. Bronze data is flattened and normalized in the silver layer.
  4. Silver outputs are written as Parquet and Delta tables.
  5. Gold tables are generated for reporting and dashboard use.

⁠Gold Layer Purpose

The gold layer is designed to support analysis and dashboarding by combining:

  • campaign metadata
  • email activity and interaction events
  • open and click performance
  • consultant mappings
  • regional groupings

These outputs form the basis for campaign performance dashboards and business reporting.

⁠Running the Pipeline

Run the full pipeline for a specific reporting month:

docker run --rm \
  -v /path/to/mailchimp_data:/app/mailchimp_data \
  connerpowell/mailchimp-pipeline:latest \
  --month 2026-01

Run for the previous month (default behavior):

docker run --rm \
  -v /path/to/mailchimp_data:/app/mailchimp_data \
  connerpowell/mailchimp-pipeline:latest

⁠Outputs

The pipeline produces:

  • raw JSON snapshots in the bronze layer
  • normalized Parquet datasets in the silver layer
  • Delta tables for downstream analytics
  • gold-layer reporting tables
  • dashboard-ready exports and analysis artifacts
Tag summary
Recent tags
Content type
Image
Digest
sha256:5e77aa12e…
Size
321.5 MB
Last updated
7 months ago
docker pull connerpowell/mailchimp-pipeline:latest