Skip to content

Commit

Permalink
Add Google Analytics for mega website
Browse files Browse the repository at this point in the history
Signed-off-by: Quanyi Ma <eli@patch.sh>
  • Loading branch information
genedna committed Jan 20, 2024
1 parent e2d81d2 commit 4c6032e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions mars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@headlessui/react": "^1.7.18",
"@headlessui/tailwindcss": "^0.2.0",
"@next/third-parties": "^14.1.0",
"@tailwindcss/forms": "^0.5.7",
"autoprefixer": "^10.4.17",
"clsx": "^2.1.0",
Expand Down
3 changes: 3 additions & 0 deletions mars/src/app/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Inter } from 'next/font/google'
import { GoogleAnalytics } from '@next/third-parties/google'

import clsx from 'clsx'

import '@/styles/tailwind.css'
Expand Down Expand Up @@ -27,6 +29,7 @@ export default function RootLayout({ children }) {
<body className="flex h-full flex-col">
<div className="flex min-h-full flex-col">{children}</div>
</body>
<GoogleAnalytics gaId="G-WCSCZGFL72" />
</html>
)
}

0 comments on commit 4c6032e

Please sign in to comment.