Add Vercel analytics

This commit is contained in:
ASOwnerYT
2024-12-04 20:29:24 +13:00
parent b067781769
commit 3c52ea1fd6
3 changed files with 42 additions and 1 deletions
+39
View File
@@ -8,6 +8,7 @@
"name": "computer-repair", "name": "computer-repair",
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"@vercel/analytics": "^1.4.1",
"next": "15.0.3", "next": "15.0.3",
"react": "19.0.0-rc-66855b96-20241106", "react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106" "react-dom": "19.0.0-rc-66855b96-20241106"
@@ -1315,6 +1316,44 @@
"dev": true, "dev": true,
"license": "ISC" "license": "ISC"
}, },
"node_modules/@vercel/analytics": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.4.1.tgz",
"integrity": "sha512-ekpL4ReX2TH3LnrRZTUKjHHNpNy9S1I7QmS+g/RQXoSUQ8ienzosuX7T9djZ/s8zPhBx1mpHP/Rw5875N+zQIQ==",
"license": "MPL-2.0",
"peerDependencies": {
"@remix-run/react": "^2",
"@sveltejs/kit": "^1 || ^2",
"next": ">= 13",
"react": "^18 || ^19 || ^19.0.0-rc",
"svelte": ">= 4",
"vue": "^3",
"vue-router": "^4"
},
"peerDependenciesMeta": {
"@remix-run/react": {
"optional": true
},
"@sveltejs/kit": {
"optional": true
},
"next": {
"optional": true
},
"react": {
"optional": true
},
"svelte": {
"optional": true
},
"vue": {
"optional": true
},
"vue-router": {
"optional": true
}
}
},
"node_modules/acorn": { "node_modules/acorn": {
"version": "8.14.0", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz",
+1
View File
@@ -9,6 +9,7 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@vercel/analytics": "^1.4.1",
"next": "15.0.3", "next": "15.0.3",
"react": "19.0.0-rc-66855b96-20241106", "react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106" "react-dom": "19.0.0-rc-66855b96-20241106"
+2 -1
View File
@@ -2,8 +2,8 @@ import localFont from "next/font/local";
import "./globals.css"; import "./globals.css";
import Navbar from "./components/Navbar" import Navbar from "./components/Navbar"
import Footer from "./components/Footer" import Footer from "./components/Footer"
import Script from 'next/script'
import ChatwootWidget from "./components/ChatwootWidget" import ChatwootWidget from "./components/ChatwootWidget"
import { Analytics } from "@vercel/analytics/react"
const geistSans = localFont({ const geistSans = localFont({
src: "./fonts/GeistVF.woff", src: "./fonts/GeistVF.woff",
@@ -29,6 +29,7 @@ export default function RootLayout({ children }) {
<Navbar /> <Navbar />
{children} {children}
<Footer /> <Footer />
<Analytics />
</body> </body>
</html> </html>
); );