Skip to content

Commit 1186a5f

Browse files
committed
feat(docs): add umami analytics script to documentation site
1 parent 5a9e5ce commit 1186a5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/app/[lang]/layout.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import '@/app/global.css';
22
import { defineI18nUI } from 'fumadocs-ui/i18n';
33
import { RootProvider } from 'fumadocs-ui/provider';
44
import type { Metadata } from 'next';
5+
import Script from 'next/script';
56
import type { PropsWithChildren } from 'react';
67
import { i18n } from '@/lib/i18n';
78

@@ -90,6 +91,11 @@ export default async function Layout({
9091
const lang = (await params).lang;
9192
return (
9293
<html lang={lang} suppressHydrationWarning>
94+
<Script
95+
defer
96+
src="https://umami.mjstudio.net/script.js"
97+
data-website-id="20802a8b-5591-4919-a8af-d20317718fd0"
98+
/>
9399
<body className="flex flex-col min-h-screen">
94100
<RootProvider
95101
i18n={provider(lang)}

0 commit comments

Comments
 (0)