📈 Add umami analyze

This commit is contained in:
LittleSheep 2025-03-20 21:38:49 +08:00
parent 1739cd92b7
commit 234043fece
2 changed files with 8 additions and 0 deletions

View File

@ -143,6 +143,12 @@ export default defineNuxtConfig({
transpile: ["vuetify"],
},
umami: {
id: 'eef151fb-07e2-461b-8b7f-2547aab735d4',
host: 'https://us.umami.is',
autoTrack: true,
},
modules: [
"@unocss/nuxt",
"@nuxt/content",
@ -152,6 +158,7 @@ export default defineNuxtConfig({
"@nuxtjs/i18n",
"nuxt-schema-org",
"@vueuse/motion/nuxt",
"nuxt-umami",
(_options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) => {
// @ts-expect-error

View File

@ -23,6 +23,7 @@
"nuxt": "^3.16.0",
"nuxt-gtag": "^2.1.0",
"nuxt-schema-org": "^3.5.0",
"nuxt-umami": "3.2.0",
"pinia": "^2.3.1",
"rehype-sanitize": "^6.0.0",
"rehype-stringify": "^10.0.1",