From e161182c6022644fc8dc7ff2ca38dd46b253b788 Mon Sep 17 00:00:00 2001 From: qinluhe Date: Fri, 8 Nov 2024 15:52:29 +0800 Subject: [PATCH] fix: add google ads id --- components/layout/app.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/layout/app.tsx b/components/layout/app.tsx index 85a3f2f..124670b 100644 --- a/components/layout/app.tsx +++ b/components/layout/app.tsx @@ -19,6 +19,7 @@ const Header = lazy(() => import('@/components/layout/header')); const Footer = lazy(() => import('@/components/layout/footer')); const GA_MEASUREMENT_ID = process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID; +const ADS_ID = process.env.NEXT_PUBLIC_ADS_ID; export default function App({ children, @@ -84,6 +85,7 @@ export default function App({ gtag('config', '${GA_MEASUREMENT_ID}', { page_theme: 'light' }); + gtag('config', '${ADS_ID}'); `}