{"slug": "query-web-analytics-from-the-vercel-cli", "title": "Query Web Analytics from the Vercel CLI", "summary": "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.", "body_md": "You can now query Web Analytics datapoints directly through the Vercel CLI.\n\nUsing the `vercel metrics`\n\ncommand, you can pull page views, visitors, and custom events for your Vercel projects to analyze traffic, compare trends, and answer questions about site performance.\n\nBy providing a coding agent access to the CLI, an agent can answer questions such as:\n\nWhich pages gained the most traffic this week?\n\nWhich UTM campaigns drove the most signups this month?\n\nCompare conversion events between mobile and desktop users.\n\nFor 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).", "url": "https://wpnews.pro/news/query-web-analytics-from-the-vercel-cli", "canonical_source": "https://vercel.com/changelog/query-web-analytics-from-the-vercel-cli", "published_at": "2026-06-26 08:00:00+00:00", "updated_at": "2026-06-26 12:34:21.925771+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents"], "entities": ["Vercel", "Vercel CLI", "Web Analytics"], "alternates": {"html": "https://wpnews.pro/news/query-web-analytics-from-the-vercel-cli", "markdown": "https://wpnews.pro/news/query-web-analytics-from-the-vercel-cli.md", "text": "https://wpnews.pro/news/query-web-analytics-from-the-vercel-cli.txt", "jsonld": "https://wpnews.pro/news/query-web-analytics-from-the-vercel-cli.jsonld"}}