Skip to content

feat: add Vercel Web Analytics#18

Merged
brunobuddy merged 2 commits into
mainfrom
feat/vercel-analytics
May 21, 2026
Merged

feat: add Vercel Web Analytics#18
brunobuddy merged 2 commits into
mainfrom
feat/vercel-analytics

Conversation

@brunobuddy
Copy link
Copy Markdown
Member

💭 Why

We have no traffic data for the site. This wires up Vercel Web Analytics so we can see page views and visitors.

✨ What changed

  • Inject the Vercel analytics snippet into the page layout.
  • Gated to the production build; the dev server skips it.

🔧 For operators

Enable Web Analytics in the Vercel project (Analytics tab) for data to start flowing. The snippet loads /_vercel/insights/script.js, which Vercel only serves once that toggle is on.

📝 Notes

No new dependency. The static-site script tag matches what @vercel/analytics emits, and sidesteps an optional Svelte peer-dep that breaks npm ci.

Inject the Vercel Web Analytics snippet into the page. Gated to the
production build so the dev server doesn't request the script (which
only exists on Vercel's edge). No new dependency: the static-site
script tag is what the @vercel/analytics package emits anyway, and
avoids an optional Svelte peer-dep conflict that would break npm ci.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

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

Project Deployment Actions Updated (UTC)
modelparameters-dev Ready Ready Preview May 21, 2026 12:20pm

Request Review

@brunobuddy brunobuddy merged commit 6913539 into main May 21, 2026
3 checks passed
@brunobuddy brunobuddy deleted the feat/vercel-analytics branch May 21, 2026 12:21
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