diff --git a/.env.example b/.env.example
index 63b44e3..2be6527 100644
--- a/.env.example
+++ b/.env.example
@@ -35,4 +35,6 @@ NEXT_PUBLIC_FREE_RECORD_QUOTA=3
NEXT_PUBLIC_FREE_URL_QUOTA=100
# Open Signup
-NEXT_PUBLIC_OPEN_SIGNUP=1
\ No newline at end of file
+NEXT_PUBLIC_OPEN_SIGNUP=1
+
+NEXT_PUBLIC_GOOGLE_ID=
\ No newline at end of file
diff --git a/app/GoogleAnalytics.tsx b/app/GoogleAnalytics.tsx
new file mode 100644
index 0000000..b3cb9a6
--- /dev/null
+++ b/app/GoogleAnalytics.tsx
@@ -0,0 +1,37 @@
+"use client";
+
+import Script from "next/script";
+import * as gtag from "../gtag.js";
+
+const GoogleAnalytics = () => {
+ return (
+ <>
+ {gtag.GA_TRACKING_ID ? (
+ <>
+
+
+ >
+ ) : (
+ <>>
+ )}
+ >
+ );
+};
+
+export default GoogleAnalytics;
diff --git a/app/layout.tsx b/app/layout.tsx
index 4c285bd..7548244 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -10,6 +10,8 @@ import { Toaster } from "@/components/ui/sonner";
import ModalProvider from "@/components/modals/providers";
import { TailwindIndicator } from "@/components/tailwind-indicator";
+import GoogleAnalytics from "./GoogleAnalytics";
+
interface RootLayoutProps {
children: React.ReactNode;
}
@@ -48,6 +50,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
+