Skip to content

Commit d05f111

Browse files
committed
Add GoogleAnalytics
1 parent 439d160 commit d05f111

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"@next/third-parties": "^15.3.5",
1213
"eslint": "^8.57.1",
1314
"eslint-config-next": "15.1.6",
1415
"next": "15.1.6",

pnpm-lock.yaml

Lines changed: 25 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Footer from "@/components/Footer";
44
import Header from "@/components/Header";
55
import ScrollToTop from "@/components/ScrollToTop";
66
import { Inter } from "next/font/google";
7+
import { GoogleAnalytics } from '@next/third-parties/google';
78
import "node_modules/react-modal-video/css/modal-video.css";
89
import "../styles/index.css";
910

@@ -15,7 +16,7 @@ export default function RootLayout({
1516
children: React.ReactNode;
1617
}) {
1718
return (
18-
<html suppressHydrationWarning lang="en">
19+
<html suppressHydrationWarning lang="pt-BR">
1920
{/*
2021
<head /> will contain the components returned by the nearest parent
2122
head.js. Find out more at https://beta.nextjs.org/docs/api-reference/file-conventions/head
@@ -30,6 +31,7 @@ export default function RootLayout({
3031
<ScrollToTop />
3132
</Providers>
3233
</body>
34+
<GoogleAnalytics gaId="G-5RNZMPCLKC" />
3335
</html>
3436
);
3537
}

0 commit comments

Comments
 (0)