Skip to content

Commit 54781f4

Browse files
authored
Merge pull request #49 from SWYP-mingling/chore/add-ga4-script
2 parents 03b8f26 + c0141db commit 54781f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Header from '../components/header';
66
import Footer from '../components/footer';
77
import GlobalModal from '@/components/modal/globalModal';
88
import QueryProvider from '@/components/providers/queryProvider';
9-
import { GoogleAnalytics } from '@next/third-parties/google';
9+
import { GoogleAnalytics, GoogleTagManager } from '@next/third-parties/google';
1010

1111
const pretendard = localFont({
1212
src: [
@@ -38,6 +38,7 @@ export default function RootLayout({
3838
}>) {
3939
return (
4040
<html lang="ko" className={pretendard.variable}>
41+
<GoogleTagManager gtmId="GTM-MSQ45TJD" />
4142
<body className="flex min-h-screen flex-col">
4243
<QueryProvider>
4344
<Header />
@@ -50,7 +51,6 @@ export default function RootLayout({
5051
strategy="beforeInteractive"
5152
/>
5253
</body>
53-
<GoogleAnalytics gaId="G-3FN93H79SZ" />
5454
</html>
5555
);
5656
}

0 commit comments

Comments
 (0)