A Next.js component that integrates Google Ads tracking and configuration into your application.
import GoogleAds from '@/hooks/google-ads'export default function Layout() {return (<><GoogleAds adId="YOUR-AD-ID" />{/* Your content */}</>)}
adId (string, required): Your Google Ads tracking IDloadGtagJs (boolean, optional): Whether to load the gtag.js script. Defaults to true. Set to false if the script is already loaded elsewhere to avoid duplicates.loadGtagJs flagThe component is used in src/app/layout.tsx to add Google Ads tracking across the entire application.