From 7b95ca43b78a9308d204ee81a8f6e326ac1f1d40 Mon Sep 17 00:00:00 2001 From: Poyraz Avsever Date: Mon, 30 Mar 2026 11:33:52 +0300 Subject: [PATCH] feat: add Google Analytics integration component using Next.js Script --- components/google-analytics.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 components/google-analytics.tsx diff --git a/components/google-analytics.tsx b/components/google-analytics.tsx new file mode 100644 index 0000000..49ca39f --- /dev/null +++ b/components/google-analytics.tsx @@ -0,0 +1,24 @@ +import Script from "next/script"; + +const GA_ID = process.env.NEXT_PUBLIC_GA_ID; + +export function GoogleAnalytics() { + if (!GA_ID) return null; + + return ( + <> + + + ); +}