This plugin sends Core Web Vitals to Vercel Analytics. This plugin is configured by default on Vercel. You do not need to install it manually. For more information, read this post.
npm i @vercel/gatsby-plugin-vercel-analytics
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: "@vercel/gatsby-plugin-vercel-analytics",
options: {
// (optional) Prints metrics in the console when true
debug: false,
},
},
],
};