Skip to content

Commit 89c5dcf

Browse files
monash-codingedwnl
andauthored
add google analytics (#105)
Co-authored-by: Ed <[email protected]>
1 parent db52d83 commit 89c5dcf

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

frontend/package-lock.json

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

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@mantine/core": "^7.17.0",
1414
"@mantine/hooks": "^7.16.1",
1515
"@mantine/notifications": "^7.17.0",
16+
"@next/third-parties": "^15.2.0",
1617
"@tabler/icons-react": "^3.30.0",
1718
"@tailwindcss/typography": "^0.5.16",
1819
"@vercel/analytics": "^1.5.0",

frontend/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import "@mantine/core/styles.css";
44
import "./globals.css";
55
import { Analytics } from "@vercel/analytics/react";
66
import { SpeedInsights } from "@vercel/speed-insights/next";
7+
import { GoogleAnalytics } from "@next/third-parties/google";
78

89
import NavBar from "@/components/layout/nav-bar";
910
import { MantineProvider } from "@mantine/core";
@@ -45,6 +46,7 @@ export default function RootLayout({ children }: PropsWithChildren) {
4546
{children}
4647
<Analytics />
4748
<SpeedInsights />
49+
<GoogleAnalytics gaId="G-1RXLVCFJC0" />
4850
</main>
4951
</div>
5052
</FilterProvider>

0 commit comments

Comments
 (0)