analytics

This commit is contained in:
Owen Rees
2023-06-13 20:52:15 +02:00
parent db266e6ef3
commit e69d037e5d
3 changed files with 13 additions and 1 deletions
+6 -1
View File
@@ -1,3 +1,5 @@
import { Analytics } from "@vercel/analytics/react";
import "./globals.css"; import "./globals.css";
import { Inter } from "next/font/google"; import { Inter } from "next/font/google";
@@ -15,7 +17,10 @@ export default function RootLayout({
}) { }) {
return ( return (
<html lang="en"> <html lang="en">
<body className={inter.className}>{children}</body> <body className={inter.className}>
{children}
<Analytics />
</body>
</html> </html>
); );
} }
+6
View File
@@ -11,6 +11,7 @@
"@types/node": "20.2.3", "@types/node": "20.2.3",
"@types/react": "18.2.6", "@types/react": "18.2.6",
"@types/react-dom": "18.2.4", "@types/react-dom": "18.2.4",
"@vercel/analytics": "^1.0.1",
"autoprefixer": "10.4.14", "autoprefixer": "10.4.14",
"dotenv-expand": "^10.0.0", "dotenv-expand": "^10.0.0",
"eslint": "8.41.0", "eslint": "8.41.0",
@@ -2011,6 +2012,11 @@
"url": "https://opencollective.com/typescript-eslint" "url": "https://opencollective.com/typescript-eslint"
} }
}, },
"node_modules/@vercel/analytics": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.0.1.tgz",
"integrity": "sha512-Ux0c9qUfkcPqng3vrR0GTrlQdqNJ2JREn/2ydrVuKwM3RtMfF2mWX31Ijqo1opSjNAq6rK76PwtANw6kl6TAow=="
},
"node_modules/abab": { "node_modules/abab": {
"version": "2.0.6", "version": "2.0.6",
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
+1
View File
@@ -16,6 +16,7 @@
"@types/node": "20.2.3", "@types/node": "20.2.3",
"@types/react": "18.2.6", "@types/react": "18.2.6",
"@types/react-dom": "18.2.4", "@types/react-dom": "18.2.4",
"@vercel/analytics": "^1.0.1",
"autoprefixer": "10.4.14", "autoprefixer": "10.4.14",
"dotenv-expand": "^10.0.0", "dotenv-expand": "^10.0.0",
"eslint": "8.41.0", "eslint": "8.41.0",