Test matomo tracker
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
@inertiaHead
|
||||
|
||||
<!-- Matomo -->
|
||||
<script>
|
||||
{{-- <script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
@@ -38,7 +38,7 @@
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
</script> --}}
|
||||
<!-- End Matomo Code -->
|
||||
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user