Skip to content

Commit

Permalink
Merge pull request #248 from UTDNebula/google-analytics
Browse files Browse the repository at this point in the history
Add Google Analytics
  • Loading branch information
nl32 authored Oct 8, 2024
2 parents 62d3430 + 1785cc4 commit cebe3dd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 29 deletions.
46 changes: 20 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@auth/drizzle-adapter": "^0.3.2",
"@hookform/resolvers": "^3.3.2",
"@next/third-parties": "^14.2.15",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
Expand All @@ -27,7 +28,6 @@
"@trpc/client": "^11.0.0-rc.340",
"@trpc/react-query": "^11.0.0-rc.340",
"@trpc/server": "^11.0.0-rc.340",
"@vercel/analytics": "^1.3.1",
"date-fns": "^2.30.0",
"dotenv": "^16.0.3",
"drizzle-orm": "^0.28.5",
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TRPCReactProvider } from '@src/trpc/react';
import Sidebar from '@src/components/nav/Sidebar';
import { type Metadata } from 'next';

import { Analytics } from '@vercel/analytics/react';
import { GoogleAnalytics } from '@next/third-parties/google'

const inter = Inter({
subsets: ['latin'],
Expand Down Expand Up @@ -48,7 +48,7 @@ export default function RootLayout({
<Sidebar />
<div className="max-h-screen overflow-y-scroll">{children}</div>
</TRPCReactProvider>
<Analytics />
<GoogleAnalytics gaId="G-FYTBHVKNG6" />
</body>
</html>
);
Expand Down

0 comments on commit cebe3dd

Please sign in to comment.