chore: updates mixpanel action names

This commit is contained in:
Matteo Cominetti
2022-03-28 18:36:20 +01:00
parent 155eadf76c
commit efe075ff8b
4 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -195,18 +195,18 @@ export default {
console.log(server_id)
console.log(distinct_id)
this.$mixpanel.register({ server_id: server_id, hostApp: 'excel' })
this.$mixpanel.register({ server_id: server_id, hostApp: 'excel', type: 'action' })
this.$mixpanel.identify(distinct_id)
this.$mixpanel.track('Excel Action', { name: 'Log In' })
this.$mixpanel.track('Connector Action', { name: 'Log In' })
} else {
this.$mixpanel.track('Excel Action', { name: 'Log Out' })
this.$mixpanel.track('Connector Action', { name: 'Log Out' })
this.$mixpanel.reset()
}
}
},
mounted() {
this.$mixpanel.track('Excel Action', { name: 'Launched', hostApp: 'excel' })
this.$mixpanel.track('Connector Action', { name: 'Launched', hostApp: 'excel' })
}
}
</script>
+1 -1
View File
@@ -112,7 +112,7 @@ export default {
this.$matomo && this.$matomo.setCustomUrl(`http://connectors/Excel/stream/add`)
this.$matomo && this.$matomo.trackPageView(`stream/add`)
this.$mixpanel.track('Excel Action', { name: 'Stream Add' })
this.$mixpanel.track('Connector Action', { name: 'Stream Add' })
this.$store.dispatch('addStream', {
id: this.stream.id,
+2 -2
View File
@@ -447,7 +447,7 @@ export default {
swapReceiver() {
let s = { ...this.savedStream }
s.isReceiver = !s.isReceiver
this.$mixpanel.track('Excel Action', { name: 'Stream Swap Receive/Send' })
this.$mixpanel.track('Connector Action', { name: 'Stream Swap Receive/Send', type: 'action' })
this.$store.dispatch('updateStream', s)
},
@@ -471,7 +471,7 @@ export default {
},
remove() {
this.$mixpanel.track('Excel Action', { name: 'Stream Remove' })
this.$mixpanel.track('Connector Action', { name: 'Stream Remove' })
return this.$store.dispatch('removeStream', this.savedStream.id)
},
cancel() {
+1 -1
View File
@@ -136,7 +136,7 @@ export default {
mounted() {
this.$matomo && this.$matomo.setCustomUrl(`http://connectors/Excel/stream/list`)
this.$matomo && this.$matomo.trackPageView(`stream/list`)
this.$mixpanel.track('Excel Action', { name: 'Stream List' })
this.$mixpanel.track('Connector Action', { name: 'Stream List' })
},
methods: {
infiniteHandler($state) {