From c82f46b0a78b12276fbb46cd640d2feb7b85abdf Mon Sep 17 00:00:00 2001 From: Utkarsh Jaiswal <1406utkarsh@gmail.com> Date: Wed, 23 Oct 2024 17:50:17 +0530 Subject: [PATCH 1/2] added analytics --- package.json | 3 ++- pages/_app.js | 22 ++++++++++++++++++++++ pages/about.js | 22 ++++++++++++++++++++++ pages/contact.js | 20 ++++++++++++++++++++ pages/index.js | 25 +++++++++++++++++++++++++ pages/team.js | 22 ++++++++++++++++++++++ yarn.lock | 12 ++++++++++++ 7 files changed, 125 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b1d2ecf..268c3fb 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@nextui-org/navbar": "^2.0.32", "@nextui-org/react": "^2.4.1", "@nextui-org/system": "^2.2.1", + "@vercel/analytics": "^1.3.1", "axios": "^1.7.3", "dotenv": "^16.4.5", "ionicons": "^7.3.1", @@ -44,4 +45,4 @@ "postcss": "^8", "tailwindcss": "^3.3.0" } -} \ No newline at end of file +} diff --git a/pages/_app.js b/pages/_app.js index d2a47f1..1436a27 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -3,11 +3,23 @@ import Navbar from "@/components/Shared/Navbar/Navbar"; import Footer from "@/components/Shared/Footer/Footer"; import Scroll from "@/components/Shared/Scroll"; import Head from "next/head"; +import { Analytics } from "@vercel/analytics/react" function MyApp({ Component, pageProps }) { return ( <> + + {/* Google Tag Manager */} +