Skip to content

Commit 31c4cd0

Browse files
authored
Merge pull request #59 from basilry/dev
[update] ga 오류 수정
2 parents e55c465 + cab3de0 commit 31c4cd0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/app/layout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import React, { useEffect, useState } from "react"
44
import { ToastContainer } from "react-toastify"
55
import { AppProgressBar as ProgressBar } from "next-nprogress-bar"
6+
import { GoogleAnalytics } from "@next/third-parties/google"
67
import { Inter } from "next/font/google"
78
import localFont from "next/font/local"
89
import classNames from "classnames"
@@ -16,8 +17,6 @@ import "swiper/css/navigation"
1617
import "@styles/nprogress.scss"
1718
import SuspenseWrapper from "@components/layout/SuspenseWrapper"
1819
import { useCoreStore } from "@lib/stores/store"
19-
import { GoogleAnalytics } from '@next/third-parties/google'
20-
2120

2221
const inter = Inter({ subsets: ["latin"] })
2322
const pretendardFont = localFont({
@@ -69,7 +68,7 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
6968
<div id="modal-root"></div>
7069
</Container>
7170

72-
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GA_ID} />
71+
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GA_ID || ""} />
7372
</SuspenseWrapper>
7473
</body>
7574
</html>

0 commit comments

Comments
 (0)