# Query Web Analytics from the Vercel CLI

**Published:** June 26, 2026 | **Authors:** Damien Simonin Feugas, Ergün Erdoğmuş

---

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.

![web analytics CLI light](//images.ctfassets.net/e5382hct74si/6Quh2BfUmxV9cbFFkOG3gr/208034a146068f7015c62b70faf7d477/web_analytics_CLI_light.png)

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](https://vercel.com/docs/analytics/accessing-metrics-with-vercel-cli).

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)