README
Note for Rufus: properties.csv is the first draft list of web properties we want analytics for (bead marketing-861.28.3). Please confirm the conversion column: it is blank for every row, with a suggestion in notes where I could guess one. Also check owner_account_guess (which Google/Umami/PostHog account holds each property); it is a guess, not verified, and status is my reading of the portfolio.
Analytics properties
properties.csv lists each site with its analytics tool and id, found by reading each local workspace's config.json or site HTML (tracking ids are public tag ids, not secrets) and the planning portfolio. It drives the access test and the weekly pull. Tool unknown means not checked; none means no tag found in code.
Columns: slug, name, url, family (life-itself|datopian|personal), status (active|promoted|dormant), analytics_tool, analytics_id, owner_account_guess, conversion (what counts as success), conversion_source (where that count lives: GA4 event, Twenty, GitHub releases, etc.), notes.
Source: docs/plans/2026-10-16-analytics-one-view.md appendix A. Do not put credentials here.
Access test (T5, 17 Oct 2026)
- Two Google logins, each read-only (Analytics, Search Console):
~/.config/gcloud-lifeitselfand~/.config/gcloud-datopian. A third login,~/.config/gcloud-rufuspollock(rufus@rufuspollock.com, Atomatic), holds rufuspollock.com (GA4G-G0W9DD4PQE, property 559370692, created 17 Oct; no Search Console site yet) plus old Open Knowledge properties (ignore). The Atomatic GA account seen via the Datopian login holds only DataHub.io. - GA4 Admin, GA4 Data and Search Console APIs all work. Quota is billed to project
gws-rufusby sending thex-goog-user-project: gws-rufusheader (set-quota-projectfailed; the header is enough). - All GA4 properties and their tag ids:
ga4-properties.csv. Search Console sites: lifeitself.org, openrevolution.net, imedproject.org, portaljs.org (Life Itself login); flowershow.app, wayofmarkdown.com (Datopian login). - Twenty read works with
~/.config/twenty/apikey; only Way Into AI and Reason Commons sign-ups are there. - Weekly summary day: Wednesday.
Weekly pull and summary (T6, T7)
python3 scripts/analytics_pull.py [--days N] [--only SOURCE] [--dry-run]: GA4 (users, sessions, views), self-hosted Umami (same metric names: visitors, visits, pageviews per UTC day), Search Console (clicks, impressions) and Twenty sign-ups intodaily.csv(long format: date, site, source, metric, value; re-runs overwrite), plus weekly top sources intop-sources.csv(Umami: referrer domains plus(direct), counted in visitors). Backfilled 400 days on 17 Oct. Status of the last run:last-pull.json.python3 scripts/analytics_summary.py: writessummaries/<date>.md: problems, conversions, push/keep/park calls needed, traffic for active properties; dormant and untracked properties in the first week of each month.- Dashboard:
dashboard.htmlhere is a self-contained page (charts, no server), rebuilt by the daily Action withpython3 scripts/dashboard.py --html --no-open. Template:scripts/dashboard_template.html.python3 scripts/dashboard.py [site]prints the same as text;--html [site]rebuilds and opens it. Agents use thedashboardskill. Published at https://marketing.lifeitself.org/data/analytics/dashboard.html. - Record push/keep/park calls in
decisions.csv(date, site, call, note). - Scheduled: GitHub Actions refreshes and commits data daily at 08:17 UTC and maintains one summary for each Wednesday. See SETUP.md for credentials and manual runs. The former Mac launchd job is disabled;
scripts/analytics_weekly.shremains a manual fallback. - To add a property: a row in
properties.csvwithga4_property_idandowner_account_guessstartinglifeitselfordatopian, or withanalytics_toolumamiandanalytics_idset to the website id on umami.lifeitself.org (key:~/.config/umami/api-key); for sign-ups setconversion_sourcetotwenty:<targetKey>. - Not yet covered: PostHog, YouTube (bead marketing-2q7), social accounts (marketing-dp2), post-level results.
Datopian and Flowershow sites
Moved out on 27 Nov 2026 (Rufus): Way of Markdown, Flowershow, DataPressr, DataHub, datopian.com, MarkdownDB and Giftless are Datopian's to track. Their rows, history to 26 Nov 2026 and decisions now live in datopian/marketing data/analytics/; this pull no longer covers them. The Datopian Google login stays in the pull's credentials in case it is wanted again. Screenshot It stays here (family personal).
New machine or cloud
See SETUP.md: copy the login files with scripts/analytics_creds.sh (no browser, no gcloud needed; the pull refreshes tokens itself).
Umami (self-hosted, umami.lifeitself.org)
Agents use the API with curl and the key; there is no MCP server (dropped 20 Oct: scripts cover it and a 133-tool server costs context in every session). Calls (K=$(tr -d '[:space:]' < ~/.config/umami/api-key), header Authorization: Bearer $K, times in ms):
- Stats:
GET https://umami.lifeitself.org/api/websites/<id>/stats?startAt=<ms>&endAt=<ms> - Daily pageviews:
.../pageviews?startAt=&endAt=&unit=day&timezone=UTC - Top referrers or pages:
.../metrics?type=referrer|path&startAt=&endAt= - Live visitors:
.../active - New site: see the launch step in
PLAYBOOK.md.
The key cannot reach /api/users, /api/admin or /api/auth. Sites sit in teams, so list them with GET /api/teams/<teamId>/websites.
History. tryinbox, Screenshot It and Way Into AI (formerly AI Learned Today) were on Umami Cloud (rufus@lifeitself.org) until 20 Oct 2026. Their Cloud history is imported into the self-hosted sites with scripts/umami_import_cloud.sh (bead marketing-861.32.1).