Hey folks, hoping Vercel staff or someone who’s seen this can help.
My Web Analytics has been showing 0 visitors for the last ~3 days even though the integration is installed correctly, the dashboard says “Enabled”, and the site is receiving normal traffic. The beacon endpoints are being served as 404 by Vercel’s edge.
Setup
Vite + React SPA /analytics v2.0.1 installed, <Analytics /> mounted at the root of the app, inside <BrowserRouter> Custom production domain mapped to the project No middleware, no CSP, no custom security headers vercel.json catch-all rewrite uses a negative lookahead so /_vercel/* is not intercepted: { "source": "/((?!_vercel/).*)", "destination": "/index.html" }
What the edge is returning
GET https://<my-domain>/_vercel/insights/script.js → HTTP/2 404 content-type: text/plain; charset=utf-8 x-vercel-error: NOT_FOUND server: Vercel body: "The page could not be found"
Same 404 for POST /_vercel/insights/view. So no page-view events can possibly reach Vercel.
What I’ve already tried
Confirmed the main JS bundle references /_vercel/insights/script.js at the correct URL. Toggled Web Analytics off and on from the dashboard several times. CLI: vercel project web-analytics <my-project> — says “Web Analytics is enabled for …” but the state doesn’t flip. REST: POST /web/insights/toggle?projectId=… with body {"value": true} returns {"value":true} (looks like success) but the project record is unchanged. Forced redeploys to production. No change. Verified the same endpoints return 200 for OTHER projects on the same team (/_vercel/insights/script.js is served fine for those). So this is specifically this one project. Verified in the project API record: webAnalytics.enabledAt is more recent than webAnalytics.disabledAt and webAnalytics.canceledAt, but disabledAt and canceledAt are still populated (non-null). From the outside, that looks like a stuck cancellation flag that the normal toggle flow doesn’t clear.
Question Is the canceledAt field on webAnalytics what gates the edge’s /_vercel/insights/* handler? And if so, is there a public way to clear it, or does this need Vercel support to reset it server-side?
I’ve already filed a support ticket, but putting this here in case someone has seen the same thing — or if a staff member can confirm the behaviour. Happy to share project/team IDs in a DM if a staff member needs them.
Thanks.