Skip to content

fix: restore Vercel Web Analytics (<Analytics /> dropped from layout) - #28

Merged
montycheese merged 1 commit into
mainfrom
fix-vercel-analytics
Jul 24, 2026
Merged

fix: restore Vercel Web Analytics (<Analytics /> dropped from layout)#28
montycheese merged 1 commit into
mainfrom
fix-vercel-analytics

Conversation

@montycheese

Copy link
Copy Markdown
Contributor

Symptom

Vercel Web Analytics has shown no traffic since Jul 18.

Root cause

<Analytics /> was accidentally removed from app/layout.tsx:

Without the component, the Web Analytics script never loads, so no page views are sent — and track() custom events silently no-op too. The @vercel/analytics dependency was still installed; it just wasn't rendered.

Fix

Re-add the import and render <Analytics /> in <body>. typecheck/build pass.

Notes

  • Takes effect on the next production deploy after merge (it's a code change, no env change needed).
  • Secondary check: if the temporary password gate is active in prod (SITE_PASSWORD set), gated visitors never load the app, so analytics would still read ~zero regardless of this fix. If you're seeing the gate, that would compound it — worth confirming the gate is off in prod (or expected).

Vercel Analytics recorded no traffic since Jul 18. Root cause: PR #7
(1213307, 'Snapshot UX Improvements') removed the import and <Analytics />
render from app/layout.tsx during the layout rework, so the Web Analytics
script stopped loading — no page views, and track() custom events no-op'd.

The @vercel/analytics dep was still installed; just re-render the component
(from @vercel/analytics/next) in the body. typecheck/build pass.
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
omni-ui Ready Ready Preview, Comment Jul 24, 2026 5:24pm

Request Review

@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@montycheese
montycheese merged commit 531a5a6 into main Jul 24, 2026
5 of 6 checks passed
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