diff --git a/app/root.tsx b/app/root.tsx index 69b89d14..f39fa058 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -27,15 +27,54 @@ export const meta: MetaFunction = () => ({ type LoaderData = { user: Awaited>; + gaTrackingId: string | undefined; }; export const loader: LoaderFunction = async ({ request }) => { return json({ user: await getUser(request), + gaTrackingId: process.env.GA_TRACKING_ID, }); }; +const GA = ({ trackingId }: { trackingId: string }): JSX.Element => ( + <> +