A Vercel project can have a staging environment that receives regular QA traffic alongside previews for individual branches. Until now, Vercel attributed measurements from custom environments to Preview. In its November 10 changelog, the company says Speed Insights and Web Analytics now attribute that data to the environment where it was collected.

Staging and canary traffic get their own view

The Environment dropdown in both dashboards can now select a custom environment alongside Production and Preview. A team that uses staging to exercise a release can look at performance there in Speed Insights, then use Web Analytics to see traffic for that same environment. The query builder can filter or break down results by environment.

Vercel also lists the metrics command in its CLI for querying the data. For a programmatic Web Analytics report, the Aggregation API supports custom environments too. The API option in the announcement applies specifically to Web Analytics.

The update changes attribution and uses the same measurements without requiring a configuration change. Custom environments are available on Pro and Enterprise. If a report has historically treated Preview as a proxy for staging, check which environment the report selects before comparing new measurements with earlier ones.

Sources

Vercel changelog, November 10 · Deployment environments

Stay curious. Choose thoughtfully.More news