added vue-matomo
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
"luxon": "^2.0.2",
|
||||
"string-sanitizer": "^2.0.2",
|
||||
"vue": "^3.2.19",
|
||||
"vue-matomo": "^4.1.0",
|
||||
"vue-router": "next",
|
||||
"vuex": "^4.0.2"
|
||||
},
|
||||
|
22
src/main.js
22
src/main.js
@@ -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')
|
||||
|
@@ -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')
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@@ -4043,6 +4043,7 @@ __metadata:
|
||||
sass-loader: ^10.2.0
|
||||
string-sanitizer: ^2.0.2
|
||||
vue: ^3.2.19
|
||||
vue-matomo: ^4.1.0
|
||||
vue-router: next
|
||||
vuex: ^4.0.2
|
||||
languageName: unknown
|
||||
@@ -11629,6 +11630,13 @@ fsevents@~2.3.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"vue-matomo@npm:^4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "vue-matomo@npm:4.1.0"
|
||||
checksum: aa61926ff56b17b7adb88791b1d945b8acad68b89f06641f83c2b263b73aec2d55de0889fbe625fe8ef2bef46b52f6a48296ebbc00f4e6934293be3fee9a9a97
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"vue-router@npm:next":
|
||||
version: 4.0.12
|
||||
resolution: "vue-router@npm:4.0.12"
|
||||
|
Reference in New Issue
Block a user