npm install @vercel/gatsby-plugin-vercel-analytics

Track Core Web Vitals in Gatsby projects with Vercel Speed Insights.

About @vercel/gatsby-plugin-vercel-analytics

The npm package @vercel/gatsby-plugin-vercel-analytics is a powerful tool designed specifically for Gatsby projects aiming to enhance their performance tracking capabilities. This node module seamlessly integrates with Vercel’s analytics services to provide real-time insights into Core Web Vitals, ensuring that developers have the necessary data to optimize their sites effectively. By focusing on metrics such as Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS), this plugin helps in identifying and resolving issues that could potentially affect the user experience. Its direct integration with Gatsby projects means that setup is straightforward and does not require significant changes to existing project structures.

To begin utilizing this essential tool in your Gatsby project, simply run npm install @vercel/gatsby-plugin-vercel-analytics. This command integrates the plugin into your project, enabling the tracking of Core Web Vitals and providing insights via Vercel Speed Insights. With this installation, developers can immediately start monitoring performance metrics that are crucial for improving site speed and stability. The integration not only aids in enhancing user engagement by optimizing performance but also plays a critical role in boosting SEO rankings as search engines increasingly prioritize user experience metrics.

The @vercel/gatsby-plugin-vercel-analytics package is an indispensable resource for developers looking to maintain and improve the performance of their Gatsby-based websites. By providing detailed and actionable insights into key performance indicators, it supports developers in their quest to deliver a superior web experience. This tool’s ability to analyze and report on critical web vitals in real time makes it a valuable addition to any Gatsby project focused on achieving peak performance and user satisfaction.

More from vercel

vercel npm packages

Find the best node modules for your project.

Search npm

@next/env

Next...

Read more
,

next

The React...

Read more
,

styled-jsx

Full CSS support for JSX without...

Read more
,

@next/eslint-plugin-next

ESLint plugin for Next.js...

Read more
,

eslint-config-next

ESLint configuration used by Next.js...

Read more
,

@edge-runtime/primitives

A set of primitives to build Vercel Edge Runtime...

Read more
,

@vercel/analytics

Gain real-time traffic insights with Vercel Web...

Read more
,

vercel

The command-line interface for...

Read more
,

@vercel/speed-insights

Speed Insights is a tool for measuring web performance and providing suggestions for improvement...

Read more
,

@vercel/error-utils

A collection of error utilities for...

Read more
,

@vercel/gatsby-plugin-vercel-analytics

Track Core Web Vitals in Gatsby projects with Vercel Speed Insights...

Read more
,

@vercel/ncc

Simple CLI for compiling a Node...

Read more

Dependencies

Core dependencies of this npm package and its dev dependencies.

@changesets/cli, @svitejs/changesets-changelog-github-compact, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, @vercel/build-utils, @vercel/style-guide, async-retry, buffer-replace, create-svelte, dot, esbuild, eslint, eslint-config-prettier, eslint-plugin-jest, execa, fs-extra, glob, husky, jest, json5, lint-staged, node-fetch, npm-package-arg, prettier, source-map-support, ts-eager, ts-jest, turbo, typescript

Documentation

A README file for the @vercel/gatsby-plugin-vercel-analytics code repository. View Code

@vercel/gatsby-plugin-vercel-analytics


⚠️ This repo was migrated from https://github.com/vercel/gatsby-plugin-vercel


This plugin sends Core Web Vitals to Vercel Speed Insights. This plugin is configured by default on Vercel. You do not need to install it manually. For more information, read this post.

Install

npm i @vercel/gatsby-plugin-vercel-analytics

Usage

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "@vercel/gatsby-plugin-vercel-analytics",
      options: {
        // (optional) Prints metrics in the console when true
        debug: false,
      },
    },
  ],
};

Inspiration