Skip to content

Commit

Permalink
chore: move ga script to head
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Aug 1, 2024
1 parent ca225f7 commit b24456c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export function Layout({ children }: { children: ReactNode }) {
/>
<Meta />
<Links />
</head>
<body>
{process.env.NODE_ENV === 'development' ? null : (
<>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X4J2WVTTK5" />
Expand All @@ -59,6 +57,8 @@ export function Layout({ children }: { children: ReactNode }) {
/>
</>
)}
</head>
<body>
<WideDeviceLayout>{children}</WideDeviceLayout>
<ScrollRestoration />
<Scripts />
Expand Down

0 comments on commit b24456c

Please sign in to comment.