Skip to content

Commit

Permalink
feat: add umami analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
romangg committed Oct 24, 2024
1 parent a3df2f7 commit a33c55b
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 35 deletions.
14 changes: 14 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineNuxtConfig({
'@nuxt/image',
'@nuxtjs/color-mode',
'@nuxtjs/sitemap',
'nuxt-umami',
],
site: {
url: 'https://manjaro.org/',
Expand All @@ -26,6 +27,19 @@ export default defineNuxtConfig({
stylistic: true,
},
},
umami: {
id: '9f30d602-fae7-4a19-a411-0a9ed75e4ddc',
host: 'https://umami.manjaro.org',
autoTrack: true,
// proxy: 'cloak',
// useDirective: true,
// ignoreLocalhost: true,
// excludeQueryParams: false,
// domains: ['cool-site.app', 'my-space.site'],
customEndpoint: '/getdata',
// enabled: false,
// logErrors: true,
},
colorMode: {
preference: 'system',
dataValue: 'theme', // for daisyUI
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@nuxt/image": "^1.7.0",
"@nuxtjs/sitemap": "6.0.0-beta.1",
"nuxt": "^3.11.2",
"nuxt-umami": "^3.0.2",
"vue": "^3.4.27",
"vue-router": "^4.3.2"
},
Expand Down
Loading

0 comments on commit a33c55b

Please sign in to comment.