cd /news/developer-tools/query-web-analytics-from-the-vercel-… · home topics developer-tools article
[ARTICLE · art-40757] src=vercel.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Query Web Analytics from the Vercel CLI

Vercel launched a CLI command, `vercel metrics`, enabling users to query Web Analytics datapoints such as page views, visitors, and custom events directly from the terminal. The tool allows developers and coding agents to analyze traffic, compare trends, and answer performance questions without leaving the command line.

read1 min views1 publishedJun 26, 2026

You can now query Web Analytics datapoints directly through the Vercel CLI.

Using the vercel metrics command, you can pull page views, visitors, and custom events for your Vercel projects to analyze traffic, compare trends, and answer questions about site performance.

By providing a coding agent access to the CLI, an agent can answer questions such as:

Which pages gained the most traffic this week?

Which UTM campaigns drove the most signups this month?

Compare conversion events between mobile and desktop users.

For more details on how to use the CLI command and a complete list of supported metrics, dimensions, filters, and query options, explore the documentation.

── more in #developer-tools 4 stories · sorted by recency
── more on @vercel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/query-web-analytics-…] indexed:0 read:1min 2026-06-26 ·