Skip to content

Commit

Permalink
fix: add google ads id (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinluhe authored Nov 8, 2024
1 parent 68e2306 commit 1e17f0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/layout/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -84,6 +85,7 @@ export default function App({
gtag('config', '${GA_MEASUREMENT_ID}', {
page_theme: 'light'
});
gtag('config', '${ADS_ID}');
`}
</Script>
</>
Expand Down

0 comments on commit 1e17f0d

Please sign in to comment.