feat(website): added analytics

This commit is contained in:
Stan Girard 2023-05-16 12:02:10 +02:00
parent cd5bb5cf1a
commit 96ea678355
4 changed files with 26 additions and 18 deletions

View File

@ -1,5 +1,6 @@
import './globals.css'
import { Inter } from 'next/font/google'
import { Analytics } from '@vercel/analytics/react';
const inter = Inter({ subsets: ['latin'] })
@ -12,6 +13,7 @@ export default function RootLayout({ children }) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
<Analytics />
</html>
)
}

View File

@ -16,7 +16,7 @@ export default function Home() {
height="480"
frameborder="0"
allow="autoplay; fullscreen; picture-in-picture"
allowfullscreen
allowFullScreen
></iframe>
</div>
<div className={styles.grid}>

View File

@ -1,18 +1,19 @@
{
"name": "nextjs",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"eslint": "8.39.0",
"eslint-config-next": "13.4.1",
"next": "13.4.1",
"react": "18.2.0",
"react-dom": "18.2.0"
}
}
"name": "nextjs",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@vercel/analytics": "^1.0.1",
"eslint": "8.39.0",
"eslint-config-next": "13.4.1",
"next": "13.4.1",
"react": "18.2.0",
"react-dom": "18.2.0"
}
}

View File

@ -211,6 +211,11 @@
"@typescript-eslint/types" "5.59.5"
eslint-visitor-keys "^3.3.0"
"@vercel/analytics@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.0.1.tgz#38308a626c91866cb00a249c08bf65251e9b9d81"
integrity sha512-Ux0c9qUfkcPqng3vrR0GTrlQdqNJ2JREn/2ydrVuKwM3RtMfF2mWX31Ijqo1opSjNAq6rK76PwtANw6kl6TAow==
acorn-jsx@^5.3.2:
version "5.3.2"
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"