Skip to content

Commit

Permalink
integrate google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmooot committed Oct 20, 2024
1 parent 5e06d1a commit 9f90623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function RootLayout({ children }) {
{/* To avoid FOUT with styled-components wrap Layout with StyledComponentsRegistry https://beta.nextjs.org/docs/styling/css-in-js#styled-components */}
<Layout>{children}</Layout>
</body>
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID} />
<GoogleAnalytics gaId={`${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID}`} />
</html>
)
}
2 changes: 1 addition & 1 deletion src/components/dom/common/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import MainScene from '@/components/canvas/MainScene'
import dynamic from 'next/dynamic'
import { Suspense, use, useLayoutEffect } from 'react'
import { Suspense, useEffect, useLayoutEffect } from 'react'
import { TransitionProvider } from '@/providers'
import { EventProvider, useEvent } from '@/core/context/EventProvider'
import LoadingScreen from './LoadingScreen'
Expand Down

0 comments on commit 9f90623

Please sign in to comment.