Skip to content

feat(web): add Umami analytics with first-party proxy - #12

Merged
chtnnh merged 1 commit into
mainfrom
feat/umami-analytics
Aug 11, 2026
Merged

feat(web): add Umami analytics with first-party proxy#12
chtnnh merged 1 commit into
mainfrom
feat/umami-analytics

Conversation

@chtnnh

@chtnnh chtnnh commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Supplement Cloudflare Web Analytics with self-hosted Umami via /w/a rewrites (tracker, recorder, API) for pageviews, replays, and heatmaps. Also fix pre-commit Biome to lint staged files on new branches.

Know-Code-Verified: 879c797a0997efb7455746c04878fea20604197b0e2f663c944e27cf024515ce

Supplement Cloudflare Web Analytics with self-hosted Umami via /w/a
rewrites (tracker, recorder, API) for pageviews, replays, and heatmaps.
Also fix pre-commit Biome to lint staged files on new branches.

Know-Code-Verified: 879c797a0997efb7455746c04878fea20604197b0e2f663c944e27cf024515ce
@chtnnh chtnnh self-assigned this Aug 11, 2026
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
together-web Ready Ready Preview Aug 11, 2026 6:37am

@cursor

cursor Bot commented Aug 11, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Analytics and CSP/rewrite configuration only; no auth or data-model changes, and Umami stays off without env vars.

Overview
Adds self-hosted Umami alongside existing Cloudflare Web Analytics: page views, optional replays/heatmaps, loaded through first-party paths (/w/a.js, /w/a/r.js, /w/a/api/*) rewritten to UMAMI_ORIGIN so trackers are less likely to be blocked.

UmamiAnalytics mounts in the root layout when NEXT_PUBLIC_UMAMI_WEBSITE_ID and NEXT_PUBLIC_APP_URL are set; CSP gains frame-ancestors for the Umami origin for heatmap previews. Privacy policy text is updated to describe Umami (including proxy and optional replays). Pre-commit runs Biome on --staged when the index has changes, otherwise --changed, fixing lint on new branches without origin/main.

Reviewed by Cursor Bugbot for commit 0d03305. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0d03305. Configure here.

Comment thread apps/web/src/components/umami-analytics.tsx
Comment thread apps/web/src/components/umami-analytics.tsx
@chtnnh
chtnnh merged commit d056eb5 into main Aug 11, 2026
9 checks passed
@chtnnh
chtnnh deleted the feat/umami-analytics branch August 11, 2026 06:57
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