📈 Replace GA with Umami

This commit is contained in:
LittleSheep 2025-02-13 21:05:31 +08:00
parent b65a87e38b
commit bf5fb6f259

View File

@ -5,19 +5,22 @@ import {
documentGetInitialProps,
} from '@mui/material-nextjs/v15-pagesRouter'
import { Html, Head, Main, NextScript, DocumentContext, DocumentProps } from 'next/document'
import { GoogleAnalytics } from '@next/third-parties/google'
export default function Document(props: DocumentProps & DocumentHeadTagsProps) {
return (
<AppCacheProvider {...props}>
<Html lang="en">
<Head>
<script
defer
src="https://cloud.umami.is/script.js"
data-website-id="eef151fb-07e2-461b-8b7f-2547aab735d4"
></script>
<DocumentHeadTags {...props} />
</Head>
<body className="antialiased">
<Main />
<NextScript />
<GoogleAnalytics gaId="G-ZFJ7RX0JXF" />
</body>
</Html>
</AppCacheProvider>