Skip to content

Commit

Permalink
Adds analytics and speedinsights
Browse files Browse the repository at this point in the history
  • Loading branch information
vmesel committed Jun 23, 2024
1 parent f077912 commit 82e37a0
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18"
Expand Down
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { Header } from "@/components/Header";
import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next"

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -19,9 +20,10 @@ export default function RootLayout({
return (
<html lang="en">
<body className={inter.className}>
<Analytics/>
<Header/>
{children}
<Analytics/>
<SpeedInsights/>
</body>
</html>
);
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@
dependencies:
server-only "^0.0.1"

"@vercel/speed-insights@^1.0.12":
version "1.0.12"
resolved "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.0.12.tgz"
integrity sha512-ZGQ+a7bcfWJD2VYEp2R1LHvRAMyyaFBYytZXsfnbOMkeOvzGNVxUL7aVUvisIrTZjXTSsxG45DKX7yiw6nq2Jw==

acorn-jsx@^5.3.2:
version "5.3.2"
resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz"
Expand Down

0 comments on commit 82e37a0

Please sign in to comment.