nuxt-vitals

Web Vitals for Nuxt.js
650 387
Install
npm install nuxt-vitals
Latest Version:1.1.0
License:MIT
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: daliborgogic

nuxt-vitals

Web Vitals: Essential module for a healthy Nuxt.js

Web Vitals is an initiative by Google to provide unified guidance for quality signals that are essential to delivering a great user experience on the web.

Installation

npm install --save-dev nuxt-vitals # or yarn add --dev nuxt-vitals

Setup

Add nuxt-vitals to buildModules section of nuxt.config.js

export default {
  buildModules: [
    ['nuxt-vitals', { 
      // Tracking ID (required) { string }
      // Replace UA-XXXXXXXX-X by your Google Analytics tracking ID.
      trackingID: 'UA-XXXXXXXX-X',
      // Event Category (optional) { string }, default 'Web Vitals'
      eventCategory: 'Some Category',
      // Debug (optional) { number } default 0 
      debug: 1,
      disabled: false
    }]
  ]
}

:warning: If you are using Nuxt < v2.9 you have to install the module as a dependency (No --save-dev or --dev flags) and use modules section in nuxt.config.js instead of buildModules.

Google Analitycs Event Measurement

Behavior > Events > Overview > Event Category > Event Action

Events Actions

License

MIT

Related Packages

@nuxtjs/web-vitals

Web Vitals for Nuxt.js

226,894 386
nuxt-resource-hints

Nuxt module that adds HTTP header resource hints for resources in your Nuxt App.

7,868 1
@nuxtjs/critters

Critical CSS for Nuxt

594,605 189
nuxt-webpack-optimisations

Nuxt.js module to automatically make your webpack builds faster and smaller.

117,975 268

Version History

Version Released License
1.1.0 MIT
1.0.7 MIT
1.0.6 MIT
1.0.5 MIT
1.0.4 MIT