Skip to content

Commit

Permalink
feat: 添加 Google Analytics 统计代码
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Jun 24, 2024
1 parent 652862b commit 2301593
Show file tree
Hide file tree
Showing 3 changed files with 6,381 additions and 8,644 deletions.
14 changes: 12 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ export default defineNuxtConfig({
// 源目录
srcDir: 'src/',
// 引入模块
modules: ['@nuxt/image', 'nuxt-icons', '@nuxtjs/supabase', '@nuxtjs/tailwindcss', '@element-plus/nuxt', '@nuxtjs/color-mode', 'nuxt-icon', 'nuxt-clarity-analytics'],
modules: [
'@nuxt/image',
'nuxt-icons',
'@nuxtjs/supabase',
'@nuxtjs/tailwindcss',
'@element-plus/nuxt',
'@nuxtjs/color-mode',
'nuxt-icon',
'nuxt-clarity-analytics',
"nuxt-gtag"
],
supabase: {
redirectOptions: {
login: '/login',
Expand All @@ -40,4 +50,4 @@ export default defineNuxtConfig({
},
css: ['element-plus/theme-chalk/dark/css-vars.css', '~/assets/scss/main.scss'],
extends: ['nuxt-umami']
})
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@vue/shared": "^3.4.27",
"element-plus": "^2.7.5",
"nuxt": "^3.12.2",
"nuxt-gtag": "^2.0.6",
"nuxt-umami": "^2.6.2",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
Expand Down
Loading

0 comments on commit 2301593

Please sign in to comment.