improved path detection for matomo, added filters behaviours matomo event

This commit is contained in:
2018-11-05 13:30:30 +01:00
parent 625e893f74
commit cc080e920c
4 changed files with 27 additions and 11 deletions
+5
View File
@@ -95,6 +95,11 @@ var _Filters = {
// activate the filter
let type = e.target.getAttribute("type");
_dbs.active_type_filter = type;
// matomo
if(typeof _paq !== 'undefined'){
// console.log('Matomo Connection closed', vn.state.breadcrumb);
_paq.push(['trackEvent', 'Filter', 'opened', type]);
}
}
return false;
}