tracking link actions in connection mode
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -160,6 +160,11 @@ var _Dot = {
|
|||||||
'class':'close-link-btn',
|
'class':'close-link-btn',
|
||||||
onclick(e){
|
onclick(e){
|
||||||
vn.state.opened = 0;
|
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("🗙")
|
}//, m('span') // , m.trust("🗙")
|
||||||
),
|
),
|
||||||
@@ -209,12 +214,22 @@ var _Dot = {
|
|||||||
'class':'title',
|
'class':'title',
|
||||||
onclick(e){
|
onclick(e){
|
||||||
if(!vn.state.opened) vn.state.opened = 1;
|
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.trust(this.nested || _dbs.active_type_filter ? this.breadcrumb : this.title)),
|
||||||
m('p', {
|
m('p', {
|
||||||
'class':'summary',
|
'class':'summary',
|
||||||
onclick(e){
|
onclick(e){
|
||||||
if(!vn.state.opened) vn.state.opened = 1;
|
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))
|
}, m.trust(this.summary))
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user