Skip to content

Commit 36182f2

Browse files
author
martinadamsdev
committed
feat: add Google Analytics and remove @vercel/analytics
1 parent 75b1b12 commit 36182f2

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
},
1212
"dependencies": {
1313
"@next/third-parties": "^14.1.4",
14-
"@vercel/analytics": "^1.2.2",
1514
"@vercel/speed-insights": "^1.0.10",
1615
"next": "14.1.1",
1716
"react": "^18",

pnpm-lock.yaml

-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/layout.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Metadata } from "next";
22
import { Inter } from "next/font/google";
3-
import { Analytics } from '@vercel/analytics/react';
43
import { SpeedInsights } from '@vercel/speed-insights/next';
54
import { GoogleAnalytics } from '@next/third-parties/google'
65
import "./globals.css";
6+
import React from "react";
77

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

@@ -21,9 +21,8 @@ export default function RootLayout({
2121
<html lang="en">
2222
<body className={inter.className}>
2323
{children}
24-
<Analytics />
25-
<SpeedInsights />
2624
<GoogleAnalytics gaId="G-LBTZ0QHWKS" />
25+
<SpeedInsights />
2726
</body>
2827
</html>
2928
);

0 commit comments

Comments
 (0)