atapas / nextjs-analytics

In this repo, we have implemented an integration with Next.JS and Quickmetrics. This is to do analytics using the Metrics created by Next.js Web Vitals.

Home Page:https://blog.greenroots.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextJS-Analytics

In this repo, we have implemented an integration with Next.JS and Quickmetrics. This is to do analytics using the Metrics created by Next.js Web Vitals.

How to Run

Clone and create .env.local file with the following content,

NEXT_PUBLIC_QUICK_METRICS_API_KEY=<YOUR_QUICK_METRICS_API_KEY>
NEXT_PUBLIC_SEND_ANALYTICS=true

NEXT_PUBLIC_NAME=<YOUR_NAME>
NEXT_PUBLIC_FAKE_BLOG_NAME=<YOUR_FAKE_BLOG_NAME>
NEXT_PUBLIC_ORIGINAL_BLOG_NAME=<YOUR_FAKE_ORIGINAL_BLOG_NAME>
NEXT_PUBLIC_ORIGINAL_BLOG_LINK=<YOUR_FAKE_ORIGINAL_BLOG_LINK>
NEXT_PUBLIC_TWITTER_LINK=<YOUR_TWITTER_LINK>

Please Note: Only first two enironment variables are mandatory!

Run this command,

yarn install # Or npm install

Then,

yarn dev # Or npm run dev

Many Thanks to all the Stargazers who has supported this project with stars()

Stargazers repo roster for @atapas/nextjs-analytics

🌟 Want to Motivate?

Who doesn't need motivations? Want to motivate? Give this repo a Star (🌟).

About

In this repo, we have implemented an integration with Next.JS and Quickmetrics. This is to do analytics using the Metrics created by Next.js Web Vitals.

https://blog.greenroots.info


Languages

Language:JavaScript 86.1%Language:CSS 13.9%