unami
This commit is contained in:
@@ -5,3 +5,7 @@ FOOTBALL_DATA_TOKEN=dein_token_hier
|
|||||||
# Polymarket-Slug des WM-Events (Standard: world-cup-2026).
|
# Polymarket-Slug des WM-Events (Standard: world-cup-2026).
|
||||||
# Den genauen Slug findest du in der Polymarket-URL nach /event/.
|
# Den genauen Slug findest du in der Polymarket-URL nach /event/.
|
||||||
POLYMARKET_WC_SLUG=world-cup-2026
|
POLYMARKET_WC_SLUG=world-cup-2026
|
||||||
|
|
||||||
|
# Umami Analytics (selbst gehostet, cookiefrei)
|
||||||
|
# NEXT_PUBLIC_UMAMI_SRC=https://analytics.example.com/script.js
|
||||||
|
# NEXT_PUBLIC_UMAMI_ID=deine-website-id
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import Script from "next/script";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
@@ -23,7 +24,17 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body>{children}</body>
|
<body>
|
||||||
|
{children}
|
||||||
|
{process.env.NEXT_PUBLIC_UMAMI_SRC && process.env.NEXT_PUBLIC_UMAMI_ID && (
|
||||||
|
<Script
|
||||||
|
defer
|
||||||
|
src={process.env.NEXT_PUBLIC_UMAMI_SRC}
|
||||||
|
data-website-id={process.env.NEXT_PUBLIC_UMAMI_ID}
|
||||||
|
strategy="afterInteractive"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user