Add Umami analytics tracking for key user interactions
Integrates Umami analytics with production-only tracking script and event tracking for user login and location creation actions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import '@/app/ui/global.css';
|
||||
import { inter } from '@/app/ui/fonts';
|
||||
import { Metadata } from 'next';
|
||||
import Script from 'next/script';
|
||||
|
||||
export const metadata:Metadata = {
|
||||
alternates: {
|
||||
@@ -43,6 +44,13 @@ export default function RootLayout({
|
||||
}) {
|
||||
return (
|
||||
<html lang={locale}>
|
||||
{process.env.NODE_ENV === 'production' && (
|
||||
<Script
|
||||
src="https://umami.rezije.app/script.js"
|
||||
data-website-id="fcd97697-de4b-4a36-b40a-ddb22761cd06"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
)}
|
||||
<body className={`${inter.className} antialiased`}>{children}</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user