From 8ae95012636ccab16b839d82d015b179d16a1c5e Mon Sep 17 00:00:00 2001 From: "DESKTOP-PUHFO60\\dsx2016" Date: Mon, 19 Oct 2026 21:56:16 +0800 Subject: [PATCH] Add Umami analytics script to the flasher layout. Load tracking after interactive so production visits are counted without blocking first paint. Co-authored-by: Cursor --- .gitignore | 3 +++ app/[locale]/layout.tsx | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 95c344a..a4423fb 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,9 @@ yarn-error.log* /firmware/** !/firmware/.gitkeep +# local deploy helpers (may contain secrets / one-shots) +scripts/_*.py + # vercel .vercel diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index f096767..2d4ca03 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -1,5 +1,6 @@ import type { Metadata } from "next"; import { notFound } from "next/navigation"; +import Script from "next/script"; import { NextIntlClientProvider, hasLocale } from "next-intl"; import { getMessages, getTranslations, setRequestLocale } from "next-intl/server"; import { DM_Sans, Syne } from "next/font/google"; @@ -76,6 +77,11 @@ export default async function LocaleLayout({ children, params }: Props) { return ( +