diff --git a/src/components/common/Analytics.astro b/src/components/common/Analytics.astro
index 9ed08d8..076d7e4 100644
--- a/src/components/common/Analytics.astro
+++ b/src/components/common/Analytics.astro
@@ -1,8 +1,10 @@
---
import { GoogleAnalytics } from '@astrolib/analytics';
-import { ANALYTICS_CONFIG } from "~/utils/config";
-
+import { ANALYTICS_CONFIG } from '~/utils/config';
---
-
-{ANALYTICS_CONFIG?.vendors?.googleAnalytics?.isEnabled && }
\ No newline at end of file
+{
+ ANALYTICS_CONFIG?.vendors?.googleAnalytics?.isEnabled && ANALYTICS_CONFIG?.vendors?.googleAnalytics?.id ? (
+
+ ) : null
+}