1.0.2 • Published 4 years ago

vite-vitals v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

vite-vitals

Extend Vite with ability to send Core Web Vitals to Google Analytics.

Install

$ npm i -D vite-vitals

Setup

// vite.config.js
import vitals from 'vite-vitals'

export default {
  plugins:[vitals({
    // Tracking ID (required) { string }
    trackingID: 'UA-XXXXXXXX-X',
    // // Event Category (optional) { string }
    eventCategory: 'Vite Vitals',
    // Debug (optional) { boolean }
    debug: false
  })]
}
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago