Skip to content

Collect website event analytics - #493

Merged
max-sixty merged 2 commits into
mainfrom
codex/website-action-analytics
Sep 9, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/website-action-analytics

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Leaf’s canonical website event log lives only inside each reader’s ephemeral container, while Worker logs do not retain the event semantics. This adds a Cloudflare Analytics Engine dataset for accepted browser events so website usage remains queryable after the container disappears.

The Worker records only canonical, content-free fields returned by Leaf’s validated event response: event id, public route and page kind, event kind and action verb, release, revision, and whether the event opened an agent obligation. Retries retain the same event id for deduplicated queries. Event content, widget ids, IP addresses, and session cookies are omitted. The Worker runbook documents the field mapping and an example query.

Checks: uv run pytest tests (965 passed); npm run typecheck && npm test (59 passed); uv run pre-commit run --all-files; Wrangler deployment dry run.

This was written by Codex on behalf of @max-sixty

Record privacy-safe canonical metadata for accepted browser events in Cloudflare Analytics Engine. Reuse the canonical event ID across retries so queries can deduplicate them, and document the dataset schema and a basic query.

> _This was written by Codex on behalf of @max-sixty_
@max-sixty
max-sixty merged commit 9f2cba5 into main Sep 9, 2026
7 checks passed
@max-sixty
max-sixty deleted the codex/website-action-analytics branch September 9, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants