Skip to content

Commit 6cea346

Browse files
committed
feat: add vercel analytics
1 parent 8f3f139 commit 6cea346

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

app/app.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import { Analytics } from '@vercel/analytics/nuxt'
3+
24
const colorMode = useColorMode()
35
46
const favicon = computed(() =>
@@ -12,6 +14,7 @@ useFavicon(favicon)
1214

1315
<template>
1416
<NuxtLayout>
17+
<Analytics />
1518
<NuxtPage />
1619
</NuxtLayout>
1720
</template>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@nuxtjs/color-mode": "3.5.2",
2020
"@nuxtjs/sitemap": "^7.2.2",
2121
"@nuxtjs/tailwindcss": "6.13.1",
22+
"@vercel/analytics": "^1.4.1",
2223
"@vueuse/core": "^12.4.0",
2324
"@vueuse/nuxt": "12.4.0",
2425
"node-emoji": "^2.2.0",

pnpm-lock.yaml

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)