From 1522ef0355861cfebd2cc09f05ae627167a7e784 Mon Sep 17 00:00:00 2001 From: poyrazavsever Date: Mon, 31 Aug 2026 12:06:11 +0300 Subject: [PATCH] feat: updated google analytics --- components/google-analytics.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/google-analytics.tsx b/components/google-analytics.tsx index 49ca39f..e62dc1e 100644 --- a/components/google-analytics.tsx +++ b/components/google-analytics.tsx @@ -1,10 +1,9 @@ import Script from "next/script"; -const GA_ID = process.env.NEXT_PUBLIC_GA_ID; +const DEFAULT_GA_ID = "G-TJBKHZLR7J"; +const GA_ID = process.env.NEXT_PUBLIC_GA_ID?.trim() || DEFAULT_GA_ID; export function GoogleAnalytics() { - if (!GA_ID) return null; - return ( <>