added vue-matomo

This commit is contained in:
2021-11-07 13:36:15 +01:00
committed by Giovanni Harting
parent ff658da16e
commit 53799adc42
4 changed files with 28 additions and 6 deletions

View File

@@ -4,8 +4,22 @@ import router from './router'
import store from './store'
import 'bootstrap'
import '@/scss/custom.scss'
import VueMatomo from 'vue-matomo'
createApp(App)
.use(store)
.use(router)
.mount('#app')
const app = createApp(App)
app.use(store)
app.use(router)
if (process.env.TRACKING) {
app.use(
VueMatomo, {
host: process.env.TRACK_URL,
siteId: process.env.TRACK_ID,
cookieDomain: process.env.TRACK_DOMAINS,
domains: process.env.TRACK_DOMAINS,
}
)
}
app.mount('#app')

View File

@@ -34,7 +34,6 @@ const routes = [
{
path: '/match/:match_id',
name: 'Match',
// redirect: '/match/:match_id/overview',
components: {
main: lazyLoadView('Match')
},
@@ -55,7 +54,7 @@ const routes = [
{
path: 'details',
components: {
score: lazyLoadComponent('MultiKillsChart')
score: lazyLoadComponent('Details')
}
},
{