Skip to content

feat: Establish the LVBT analytics platform - #3

Merged
WillieCubed merged 1 commit into
mainfrom
codex/analytics-platform
Sep 19, 2026
Merged

WillieCubed merged 1 commit into
mainfrom
codex/analytics-platform

Conversation

@WillieCubed

Copy link
Copy Markdown
Contributor

TL;DR

Adds the shared, privacy-focused analytics package, collector Worker, reporting tools, and production verification used across LVBT web properties.

Overview of Changes

The new @lvbt/analytics package combines Cloudflare Web Analytics with a strictly allowlisted first-party event client. It records no visitor identifiers, cookies, URLs, coordinates, or free-form event values; Global Privacy Control, Do Not Track, framed contexts, previews, local development, and excluded paths fail closed. Astro, React, plain HTML, CSP, Node, and Playwright entry points keep the same policy across different application profiles.

The collector validates origin, site, event source, body size, authentication, privacy signals, and rate limits before writing coarse data to Workers Analytics Engine. Fixed reporting queries, Diataxis documentation, a stable weekly report issue, browser-observed deployment checks, npm trusted-publishing configuration, package provenance, size budgets, and a Wrangler dry run make the platform operable by volunteers. Route-sensitive applications deliberately disable Cloudflare's automatic soft-navigation pageviews because Cloudflare does not expose a per-route SPA exclusion filter.

Follow-ups

Configure npm trusted publishing and the production Cloudflare credentials, then publish the single initial 0.1.0 release after merge. Set LVBT_ANALYTICS_LIVE=1 only after all four declared production sites pass their consumer cutovers.

Add the privacy-focused client, collector Worker, and reporting tools.
Include browser verification, documentation, and release workflows for
the first usable analytics release.

Co-authored-by: Codex <noreply@openai.com>
@WillieCubed
WillieCubed merged commit e30019b into main Sep 19, 2026
1 check passed
@WillieCubed
WillieCubed deleted the codex/analytics-platform branch September 19, 2026 22:29
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.

1 participant