From e5e42f597a133501d945b9fac90fcd2dd3889bba Mon Sep 17 00:00:00 2001 From: toris Date: Fri, 21 Feb 2025 00:12:14 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20[Feat]=20:=20GA=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/ads.txt | 1 + src/app/layout.tsx | 34 ++++++++++++++++++----- src/components/GoogleAdSenseComponent.tsx | 25 +++++++++++++++++ src/components/Provider.tsx | 26 +---------------- 4 files changed, 54 insertions(+), 32 deletions(-) create mode 100644 public/ads.txt create mode 100644 src/components/GoogleAdSenseComponent.tsx diff --git a/public/ads.txt b/public/ads.txt new file mode 100644 index 0000000..2c5cb51 --- /dev/null +++ b/public/ads.txt @@ -0,0 +1 @@ +google.com, pub-3004906966180197, DIRECT, f08c47fec0942fa0 \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8cc4c20..54b0955 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,9 @@ import { NextLayout, NextProvider } from '@/components/Provider'; import { pretendard } from '@/utils/fonts'; import { cn } from '@/utils/style'; +import { GoogleAnalytics, GoogleTagManager } from '@next/third-parties/google'; import type { Metadata } from 'next'; +import Script from 'next/script'; import './globals.css'; export const metadata: Metadata = { @@ -48,13 +50,6 @@ export default function RootLayout({ }>) { return ( - - - {children} + + - )} - - +
{children}