tracking link actions in connection mode

This commit is contained in:
2018-11-04 13:20:01 +01:00
parent c29d18cf86
commit 625e893f74
3 changed files with 17 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+15
View File
@@ -160,6 +160,11 @@ var _Dot = {
'class':'close-link-btn',
onclick(e){
vn.state.opened = 0;
// matomo
if(typeof _paq !== 'undefined'){
console.log('Matomo Connection closed', vn.state.breadcrumb);
_paq.push(['trackEvent', 'Connections', 'closed', vn.state.breadcrumb]);
}
}
}//, m('span') // , m.trust("🗙")
),
@@ -209,12 +214,22 @@ var _Dot = {
'class':'title',
onclick(e){
if(!vn.state.opened) vn.state.opened = 1;
// matomo
if(typeof _paq !== 'undefined'){
console.log('Matomo Connection opened', vn.state.breadcrumb);
_paq.push(['trackEvent', 'Connections', 'open', vn.state.breadcrumb]);
}
}
}, m.trust(this.nested || _dbs.active_type_filter ? this.breadcrumb : this.title)),
m('p', {
'class':'summary',
onclick(e){
if(!vn.state.opened) vn.state.opened = 1;
// matomo
if(typeof _paq !== 'undefined'){
console.log('Matomo Connection opened', vn.state.breadcrumb);
_paq.push(['trackEvent', 'Connections', 'open', vn.state.breadcrumb]);
}
}
}, m.trust(this.summary))
]