Traffic dashboard

The page data/analytics/dashboard.html is rebuilt every morning (08:17 UTC) by the GitHub Action that pulls the analytics, so it is always ready. Opening it needs no Python, Node or server.

  1. Get the latest copy: git pull --ff-only --quiet in the repo root. If it fails (local changes, offline), carry on with the copy on disk and say how old it is (date in the page subtitle).
  2. Open it in the person's browser:
    • macOS: open data/analytics/dashboard.html
    • Windows: start "" data\analytics\dashboard.html
    • Linux: xdg-open data/analytics/dashboard.html
    • Not in the repo, or they want a link to share: https://marketing.lifeitself.org/data/analytics/dashboard.html (same page, published by Flowershow from main; updates a minute or two after the daily push).
  3. Tell them in one or two plain lines: it's open, click a site's row for its detail (daily chart, weekly bars, top sources), and tick "show dormant sites" for the rest.
  4. If they asked about a specific site or a number, answer it too. If python3 works, python3 scripts/dashboard.py <site> --no-pull prints that site's figures as text; otherwise read data/analytics/daily.csv (columns date, site, source, metric, value; visitors = activeUsers). Add two or three lines on what stands out.

It is already published with the repo; don't publish it anywhere else. To rebuild it locally after changing the template (scripts/dashboard_template.html), run python3 scripts/dashboard.py --html.

Built with LogoFlowershow