Skip to content

Instantly share code, notes, and snippets.

View dmccreary's full-sized avatar

Dan McCreary dmccreary

View GitHub Profile
@dmccreary
dmccreary / site-analytics-claude-routine.md
Created June 19, 2026 17:47
Intelligent Textbooks — Site Analytics report automated monthly via Claude Code Routines

Automating the Intelligent Textbook "Site Analytics" Report with Claude Code Routines

This note documents how the Site Analytics MicroSim (https://dmccreary.github.io/intelligent-textbooks/sims/site-analytics/) is refreshed and republished automatically once a month using the Claude Code Routines (scheduled-tasks) feature.

The MicroSim renders a ranked bar chart of Google Analytics (GA4) page views over the last 90 days for every published intelligent textbook. The chart is driven by a CSV; this routine regenerates that CSV and redeploys the site so the