Skip to content

Commit

Permalink
feat: add ga
Browse files Browse the repository at this point in the history
  • Loading branch information
swh00tw committed Feb 28, 2024
1 parent d4db68b commit d5f3c2b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/recnet/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import "@radix-ui/themes/styles.css";
import "tailwindcss/tailwind.css";
import { MobileNavigator } from "./MobileNavigator";
import { ProgressbarProvider } from "./Progressbar";
import { GoogleAnalytics } from "@next/third-parties/google";

const sfpro = localFont({
src: [
Expand Down Expand Up @@ -121,6 +122,9 @@ export default async function RootLayout({
const user = await getUserServerSide();
return (
<html lang="en">
<GoogleAnalytics
gaId={process.env.NEXT_PUBLIC_GA_TRACKING_ID as string}
/>
<body className={sfpro.className}>
<ProgressbarProvider>
<AuthProvider serverUser={user}>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"private": true,
"dependencies": {
"@hookform/resolvers": "^3.3.4",
"@next/third-parties": "^14.1.0",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/themes": "^2.0.3",
Expand Down
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit d5f3c2b

Please sign in to comment.