🔨 Add matomo

This commit is contained in:
SebClem 2022-07-25 14:59:17 +02:00
parent 0fbeabf376
commit 110e1346b6
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
3 changed files with 20 additions and 1 deletions

View File

@ -25,6 +25,7 @@
"roboto-fontface": "*",
"uuid": "8.3.2",
"vue": "3.2.37",
"vue-matomo": "^4.1.0",
"vue-router": "4.0.16",
"vuetify": "3.0.0-beta.5",
"webfontloader": "1.6.28"

View File

@ -6,6 +6,7 @@ import { loadFonts } from "./plugins/webfontloader";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import axios from "axios";
import VueMatomo from "vue-matomo";
loadFonts();
const pinia = createPinia();
@ -13,4 +14,13 @@ pinia.use(piniaPluginPersistedstate);
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL;
createApp(App).use(router).use(vuetify).use(pinia).mount("#app");
createApp(App)
.use(router)
.use(vuetify)
.use(pinia)
.use(VueMatomo, {
host: "https://stats.sebclem.fr",
siteId: 2,
router: router,
})
.mount("#app");

View File

@ -995,6 +995,7 @@ __metadata:
vitest: 0.16.0
vue: 3.2.37
vue-cli-plugin-vuetify: 2.5.1
vue-matomo: ^4.1.0
vue-router: 4.0.16
vue-tsc: 0.38.2
vuetify: 3.0.0-beta.5
@ -4037,6 +4038,13 @@ __metadata:
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:4.0.16":
version: 4.0.16
resolution: "vue-router@npm:4.0.16"