From 3064db8df7c8512b020222086f14efeacc0a5144 Mon Sep 17 00:00:00 2001 From: Brandon Egger Date: Fri, 5 Apr 2024 10:13:58 -0500 Subject: [PATCH] add analytics script --- src/pages/_app.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 69b8c64..0c2af17 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -6,6 +6,7 @@ import { api } from "~/utils/api"; import "~/styles/globals.css"; import Head from "next/head"; +import { env } from "~/env.mjs"; const MyApp: AppType<{ session: Session | null }> = ({ Component, @@ -20,6 +21,13 @@ const MyApp: AppType<{ session: Session | null }> = ({ content="University of Iowa Center for Auditory Training Resources" /> + {env.NODE_ENV === "production" ? ( +