Configuration

Web Vitals diagnostic attribution

experimental.webVitalsAttribution opts selected metrics into diagnostic attribution. It is disabled by default in reviewed documentation. Verify metric fields in the exact router and version; do not send raw attribution, DOM selectors or private URLs to telemetry by default. It is not a field-data percentile calculator. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js/webVitalsAttribution. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
experimental.webVitalsAttribution

Working Example

Example Snippetnextjs
export default {experimental:{webVitalsAttribution:['CLS','LCP']}}
Next.js Reference