Skip to content

fit-vitals/nextjs-core-web-vital-google-analytics-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Core Web Vitals

Core Web Vitals are new metrics realeased by Google set to impact search rankings in May 2021.

Learn more about Web Vitals

Google Analytics

Sending your Core Web Vitals to Google Analytics can help you study the impact of performance on conversions, bounces, and time on site. This app uses the analytics npm package for handling communication with GA.

Vercel example

Read more about Next.js Vitals

Getting Started

First, install dependencies and then run the development server:

npm install
# or
yarn

then

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

About

An example of how to send Core Web Vitals to Google Analytics in a Next.js application using http://getanalytics.io/.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published