diff --git a/nx-dev/nx-dev/app/global-scripts.tsx b/nx-dev/nx-dev/app/global-scripts.tsx
index 9244dbe09b..3be79665dc 100644
--- a/nx-dev/nx-dev/app/global-scripts.tsx
+++ b/nx-dev/nx-dev/app/global-scripts.tsx
@@ -1,8 +1,16 @@
import Script from 'next/script';
-export default function GlobalScripts({ gaMeasurementId }) {
+export default function GlobalScripts({ gaMeasurementId, gtmMeasurementId }) {
+ // Don't load analytics scripts in development
+ const isProduction = process.env.NODE_ENV === 'production';
+
+ if (!isProduction) {
+ return null;
+ }
+
return (
<>
+ {/* Google Analytics (gtag) */}
+
+ {/* Google Tag Manager */}
+ {gtmMeasurementId && (
+ <>
+
+ {/* Google Tag Manager - NoScript */}
+
+ >
+ )}
+
{/* Apollo.io Embed Code */}