# Query Web Analytics from the Vercel CLI

DevFeed: [Query Web Analytics from the Vercel CLI](<https://devfeed.tech/articles/query-web-analytics-from-the-vercel-cli-1059.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/query-web-analytics-from-the-vercel-cli>)

Author: Ergün Erdoğmuş

Published: 2026-06-26T08:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [Web](<https://devfeed.tech/topics/web.md>), [coding](<https://devfeed.tech/topics/coding.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [cli](<https://devfeed.tech/tags/cli.md>), [coding](<https://devfeed.tech/tags/coding.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [performance](<https://devfeed.tech/tags/performance.md>), [vercel](<https://devfeed.tech/tags/vercel.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

Vercel CLI now supports querying Web Analytics datapoints for Vercel projects. The command can retrieve page views, visitors, and custom events to analyze traffic, compare trends, and evaluate site performance.

## Source excerpt

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. Read more