Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
gatsby-plugin-web-vitals
Advanced tools
> [Web Vitals](https://web.dev/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.
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.
This plugin sends Web Vitals metrics to Google Analytics.
npm i gatsby-plugin-web-vitals
or
yarn add gatsby-plugin-web-vitals
// gatsby-config.js
{
resolve: 'gatsby-plugin-web-vitals',
options: {
// The Google Analytics property ID; the reporting code won't be generated without it
trackingId: 'YOUR_GOOGLE_ANALYTICS_TRACKING_ID',
// An array with metrics you want to track and send to analytics
metrics: [`FID`, `TTFB`, `LCP`, `CLS`, `FCP`],
// Event Category (optional) { string }, default 'Web Vitals'
eventCategory: 'Performance',
// Include Web Vitals tracking in development
// Defaults to false meaning Vitals will only be tracked in production.
includeInDevelopment: false,
// Prints metrics in the console when true
debug: false,
}
}
Plugin based on nuxt-vitals
.
FAQs
> [Web Vitals](https://web.dev/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.
The npm package gatsby-plugin-web-vitals receives a total of 148 weekly downloads. As such, gatsby-plugin-web-vitals popularity was classified as not popular.
We found that gatsby-plugin-web-vitals demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.