feat: replace google analytics by plausible

This commit is contained in:
Valentin Kaelin 2021-03-03 21:35:12 +01:00
parent 568f91360a
commit 17af2faf1a
3 changed files with 21 additions and 10 deletions

View file

@ -8603,6 +8603,11 @@
}
}
},
"plausible-tracker": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/plausible-tracker/-/plausible-tracker-0.3.1.tgz",
"integrity": "sha512-oXnVyfTF2gzkfK3iOZCRZEnf8sH4gBASaJhY+clwWW1orIybfQpfbgg4U5Bwj5dW/4iNstM4tx4jMCVUfMCUbg=="
},
"pluralize": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz",
@ -16220,11 +16225,6 @@
}
}
},
"vue-gtag": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/vue-gtag/-/vue-gtag-1.8.0.tgz",
"integrity": "sha512-oM3DojStj3oLSgmgUTgKlj1nuUBK5u7nSzjn5BltbozmA72CjkRkMyZ/OfyVZwkHUS97Rh2LYf6QfwXMQ46ZRw=="
},
"vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
@ -16259,6 +16259,14 @@
}
}
},
"vue-plausible": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/vue-plausible/-/vue-plausible-1.1.3.tgz",
"integrity": "sha512-6qIGhuNd7HuOeT4kwO0SOUuqtdPnkIhzaZrBAjZSP6rHB8F1uOZczwJuaMCJHLxVI2VLYdWzb75GwevW13qLCQ==",
"requires": {
"plausible-tracker": "^0.3.1"
}
},
"vue-router": {
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.3.tgz",

View file

@ -12,8 +12,8 @@
"axios": "^0.21.1",
"vue": "^2.6.12",
"vue-content-loader": "^0.2.3",
"vue-gtag": "^1.8.0",
"vue-meta": "^2.4.0",
"vue-plausible": "^1.1.3",
"vue-router": "^3.4.3",
"vue-sticky-sidebar": "^1.0.5",
"vuex": "^3.5.1"

View file

@ -1,7 +1,8 @@
import Vue from 'vue'
import VueAxios from './plugins/axios'
import VueGtag from 'vue-gtag'
import VueMeta from 'vue-meta'
import { VuePlausible } from 'vue-plausible'
import '@/assets/css/main.css'
@ -11,9 +12,11 @@ import store from './store'
Vue.config.productionTip = false
Vue.use(VueAxios)
Vue.use(VueGtag, {
config: { id: 'UA-113251543-3' }
}, router)
Vue.use(VuePlausible, {
domain: 'leaguestats.gg',
trackLocalhost: false,
})
Vue.$plausible.enableAutoPageviews()
Vue.use(VueMeta)
Vue.filter('capitalize', (value) => {