Add Google Analytics tracking code
- Added GA4 tracking code (G-KDVCM5G4H1) to head section - Configured dataLayer and gtag for comprehensive analytics - Applied to all localized pages 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -101,6 +101,20 @@ export default async function LocaleLayout({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang={locale}>
|
<html lang={locale}>
|
||||||
|
<head>
|
||||||
|
{/* Google tag (gtag.js) */}
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KDVCM5G4H1"></script>
|
||||||
|
<script
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: `
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'G-KDVCM5G4H1');
|
||||||
|
`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</head>
|
||||||
<body className={`${merriweather.variable} ${lato.variable}`}>
|
<body className={`${merriweather.variable} ${lato.variable}`}>
|
||||||
<NextIntlClientProvider messages={messages} locale={locale}>
|
<NextIntlClientProvider messages={messages} locale={locale}>
|
||||||
<MuiThemeProvider>
|
<MuiThemeProvider>
|
||||||
|
|||||||
Reference in New Issue
Block a user