Skip to content

Commit c6e042e

Browse files
committed
Added Google Analytics
1 parent 318bfc1 commit c6e042e

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

app/layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import './globals.css'
22
import { Source_Sans_3 } from 'next/font/google'
33
import Script from 'next/script'
4+
import { GoogleAnalytics } from '@next/third-parties/google'
45

56
const source_sans = Source_Sans_3({
67
subsets: ['latin'],
@@ -29,6 +30,7 @@ export default function RootLayout({ children }) {
2930
<html lang="en" className={`${source_sans.variable}`}>
3031
<body className="text-center text-xl text-neutral-700">{children}</body>
3132
<Script src="https://kit.fontawesome.com/ae8eac997d.js" crossOrigin="anonymous" />
33+
<GoogleAnalytics gaId="G-8RBZ9QXX9H" />
3234
</html>
3335
)
3436
}

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"lint": "next lint"
1717
},
1818
"dependencies": {
19+
"@next/third-parties": "^14.1.0",
1920
"next": "^14.1.0",
2021
"react": "^18.2.0",
2122
"react-dom": "^18.2.0"

0 commit comments

Comments
 (0)