feat: add Google Analytics GA4 (G-LB86GJKBG0)

This commit is contained in:
AyrisAI
2026-07-13 15:25:50 +03:00
parent ea30980782
commit f37a682349
+13
View File
@@ -113,6 +113,19 @@ export default async function RootLayout({
data-domain="https://marmarislocal.com"
strategy="afterInteractive"
/>
{/* Google Analytics GA4 */}
<Script
src="https://www.googletagmanager.com/gtag/js?id=G-LB86GJKBG0"
strategy="afterInteractive"
/>
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-LB86GJKBG0');
`}
</Script>
<NextIntlClientProvider messages={messages}>
{!hideNavbarFooter && <Navbar categories={categories} />}
{children}