diff --git a/src/app/metrics/google-analytics.tsx b/src/app/metrics/google-analytics.tsx index 7de68c96..8b2f847d 100644 --- a/src/app/metrics/google-analytics.tsx +++ b/src/app/metrics/google-analytics.tsx @@ -2,7 +2,9 @@ import Script from "next/script"; -const GoogleAnalytics = ({ id }: { id: string }) => { +const GoogleAnalytics = ({ id }: { id?: string }) => { + if (!id) return null; + return ( <>