Data Modelling2026

Personal Analytics: Star Schema in Apps Script

Personal project

A personal project in combining data with different shapes: daily wearable metrics, individual website events, logged meals and drinks, and screen time by category. Google Apps Script pulls WHOOP data over OAuth, takes Apple Watch data through a webhook, and collects a short daily log through a Google Form. The data is loaded into a star schema in Google Sheets, checked automatically, and summarised into marts that answer specific questions. The public page shows real website traffic and fictional health data, so visitors can see the method without seeing any personal data.

What it does

  • Modelled 5 fact tables and 11 dimensions, with one declared grain per fact table and automated checks for orphan keys and repeated grain.
  • Kept WHOOP HRV (RMSSD) and Apple HRV (SDNN) as separate metrics, so the model itself prevents them from being averaged together.
  • Matched each behaviour to the next morning's sleep and recovery, and left days with nothing logged blank rather than treating them as zero.
  • Tracked a website funnel and click-through rate without cookies or stored IP addresses, with every field checked against an allowlist.
  • Automated WHOOP sync with token rotation and pagination, plus daily log reminders that skip anything already logged.

Illustrative UI — generated cover

Next project
Fund CRM & Investor Platform
→