feat: add Google AdSense integration

- Included Google AdSense script for ads.
- Added common ad component to the layout.
This commit is contained in:
Rico van Zelst
2025-02-26 22:25:31 +01:00
parent 22fbead9f4
commit 8338384df9

View File

@@ -52,6 +52,10 @@
@vite(['resources/css/app.css', 'resources/js/app.js'])
<!-- Google AdSense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ config('ads.client_id') }}"
crossorigin="anonymous"></script>
@stack('top_scripts')
<x-analytics.plausible />
</head>
@@ -59,6 +63,7 @@
<body class="antialiased bg-stone-900 dark scroll-smooth">
<x-navbar />
@yield('content')
<x-ads.common />
<x-footer />
@stack('bottom_scripts')
</body>