Skip to content

Commit

Permalink
feat: connect google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
csuvajit committed Oct 25, 2024
1 parent 1cbb9d7 commit 2e6209b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { authCookieKey, authenticatedPathRegex } from '@/lib/constants';
import theme from '@/util/theme';
import { AppRouterCacheProvider } from '@mui/material-nextjs/v13-appRouter';
import { ThemeProvider } from '@mui/material/styles';
import { GoogleAnalytics } from '@next/third-parties/google';
import type { Metadata, Viewport } from 'next';
import { Kanit } from 'next/font/google';
import { cookies, headers } from 'next/headers';
Expand Down Expand Up @@ -78,6 +79,8 @@ export default async function RootLayout({
))} */}
</head>

<GoogleAnalytics gaId="G-HGSPH1S4Y1" />

<body className={inter.className}>
<Toaster
position="top-center"
Expand Down
20 changes: 20 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 @@ -18,6 +18,7 @@
"@mui/material-nextjs": "^5.16.6",
"@mui/x-charts": "^7.12.1",
"@mui/x-date-pickers": "^7.12.0",
"@next/third-parties": "^15.0.1",
"@types/moment-duration-format": "^2.2.6",
"chart.js": "^4.4.5",
"chartjs-adapter-moment": "^1.0.1",
Expand Down

0 comments on commit 2e6209b

Please sign in to comment.