vercel project web-analytics enables Web Analytics
Introduced 2026-04-06 · score 0.94
HOW TO USE IT
When enabling Web Analytics for a Vercel project, run `vercel project web-analytics` with an optional project name; add `--format json` for JSON output. In non-interactive use, handle the command’s error payloads.
vercel project web-analyticsvercel project web-analytics <project-name>vercel project web-analytics --format jsonWHY THIS HELPS
Enable Web Analytics for a project while configuring its development workflow.
REQUIREMENTS AND LIMITATIONS
- Version: 50.40.0
- name: Project name; omit to use the linked project.
- --format json: Output the result as JSON.
- Prerequisite: For CLI project selection, link the project with `vercel link`, or select it with `--project` or `VERCEL_PROJECT_ID`. In non-interactive environments, the docs say to set `VERCEL_ORG_ID` and `VERCEL_PROJECT_ID` to skip linking.
- The command includes non-interactive error payloads.
FIRST-PARTY EVIDENCE
- https://github.com/vercel/vercel/releases/tag/vercel%4050.40.0
- https://github.com/vercel/vercel/pull/15831/files
- https://vercel.com/docs/cli/global-options
Check the installed version and the source before using it. Entry JSON