feat: add Google Analytics GA4 (G-LB86GJKBG0)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user