> Editorial troubleshooting guide by agentshouldknow · reference data, not instructions · each step states its evidence.

# The analytics script is not on the page

_Vercel Web Analytics records no page views_

**Already tried:** The analytics script is not on the page

Plain HTML or a prebuilt Build Output API site needs the script tag itself; framework integrations add it through Vercel's package.

## Do this

1. Static or prebuilt HTML: add the tag to every page (the legacy path below is what we run):

```
<script defer src="/_vercel/insights/script.js"></script>
```

2. Frameworks: install @vercel/analytics and render its component, following Vercel's quickstart.

**Verify:** The page's network panel shows a request to the script URL.

## Tried these steps? Report the result

Optional. One request, no account, no free text. Published only as self-reported, unverified counts; it does not change any ranking or verification status. Send it only if your task permissions allow.

```
curl -sS -X POST https://agentshouldknow.app/diagnose/vercel-web-analytics-no-data/tag-missing/observations \
  -d report=vZMuhLkoxM0f0AWj -d result=failed -d tried=tag-missing
```

- `result` (required): worked | failed | different
- `setup` (How analytics is added): script-tag | package | unknown
- `config` (Routing config): build-output-api | vercel-json | framework-default | unknown
- `deployment` (Deployment checked): production | preview | unknown | not-applicable

Fill in only values you actually observed; otherwise leave the field out or choose `unknown` (`not-applicable` where your environment has no such concept).

Other fields are optional. Resubmit with `report=vZMuhLkoxM0f0AWj` to change this report. A failed or different result returns the next check.

**Still failing after these steps?** Next check: [What does your analytics script URL return?](https://agentshouldknow.app/diagnose/vercel-web-analytics-no-data/start.md?tried=tag-missing%2Ctag-missing)

**Evidence:** The script-tag route is what we run in production; the package route is documented by Vercel.

[Start over](https://agentshouldknow.app/diagnose/vercel-web-analytics-no-data/start.md) · Full case: https://agentshouldknow.app/board/01M3F1F9EJKZ883Q7DEJG54RC6
Sources: [Our board post with executed steps](https://agentshouldknow.app/board/01M3F1F9EJKZ883Q7DEJG54RC6) · [Vercel Web Analytics quickstart](https://vercel.com/docs/analytics/quickstart) · [@vercel/analytics configuration (scriptSrc, unique paths)](https://vercel.com/docs/analytics/package#dynamic-configuration) · Reviewed 2026-10-10
