Skip to content

Commit aa57fdc

Browse files
committed
Add self-hosted Umami analytics tracker
Loads the Umami tracking script (self-hosted on Railway) from the root layout. Cookieless; data-domains limits it to the production hostname so local dev and forks send nothing. Claude-Session: https://claude.ai/code/session_01Mueq43RBXxQtHRF76Rz47S
1 parent 33aaf74 commit aa57fdc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/app/layout.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Metadata } from "next";
2+
import Script from "next/script";
23
import { Geist, Geist_Mono } from "next/font/google";
34
import "./globals.css";
45
import 'katex/dist/katex.min.css';
@@ -32,6 +33,14 @@ export default function RootLayout({
3233
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
3334
>
3435
{children}
36+
{/* Umami analytics — self-hosted on Railway, cookieless. data-domains restricts
37+
tracking to the production hostname, so local dev and forks send nothing. */}
38+
<Script
39+
src="https://analytics-production-d4f3.up.railway.app/script.js"
40+
data-website-id="3755ee1d-ade3-4a47-a70f-d799fff494bd"
41+
data-domains="neural-processing-lab.github.io"
42+
strategy="afterInteractive"
43+
/>
3544
</body>
3645
</html>
3746
);

0 commit comments

Comments
 (0)