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 ( + <> + + + ); +}