Test matomo tracker

This commit is contained in:
2024-04-01 18:02:39 +02:00
parent c8775f0449
commit 5725307213
9 changed files with 26 additions and 7 deletions

View File

@@ -28,6 +28,7 @@ const screenHeight = ref(screen.height)
const hover = ref(true);
const hoverImage = ref(null);
const selectedRow = ref(null);
// const $matomo = inject('$matomo');
const sdropdown = ref([
{ text: "Description", value: "typeName" },
@@ -407,6 +408,7 @@ const showRow = async (item) => {
country: settingsStore.country.code,
});
console.log('MATOMO',$matomo);
products.value = response.data.products;
countryHash.value = response.data.countryHash;
console.log("TEST=", response.data);

View File

@@ -11,6 +11,7 @@ import Swal from 'sweetalert2';
import { Inertia } from '@inertiajs/inertia';
import axios from 'axios';
import * as commons from './common.js'
// import VueMatomo from 'vue-matomo';
const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel';
@@ -30,13 +31,20 @@ createInertiaApp({
return createApp({ render: () => h(app, props) })
.use(plugin)
.use(ZiggyVue, Ziggy)
// .use(VueMatomo, {
// // Configure your matomo server and site by providing
// host: 'https://matomo.soson.eu',
// siteId: 3,
// })
.mixin({
methods: {
...commons,
themes: () => Themes,
},
})
.mount(el);
// .provide('$matomo', VueMatomo)
.mount(el)
},
});