matomo for vue and basic tracking

This commit is contained in:
2024-03-28 05:49:49 +01:00
parent 19c096bcf6
commit c8ed8c2abe
4 changed files with 10 additions and 16 deletions

View File

@@ -390,6 +390,8 @@ onMounted(() => {
});
const showRow = async (item) => {
console.log("ITEM=", item);
this.$matomo.trackEvent('Product', 'search', 'text', settingsStore.text);
this.$matomo.trackEvent('Product', 'click', 'code', item.globalCode);
itemCode.value = item.code;
try {