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"
|
data-domain="https://marmarislocal.com"
|
||||||
strategy="afterInteractive"
|
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}>
|
<NextIntlClientProvider messages={messages}>
|
||||||
{!hideNavbarFooter && <Navbar categories={categories} />}
|
{!hideNavbarFooter && <Navbar categories={categories} />}
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in New Issue
Block a user