feat: add analytics logging while hoppscotch requests are fired
This commit is contained in:
@@ -121,6 +121,7 @@
|
||||
<script>
|
||||
import Paho from "paho-mqtt"
|
||||
import debounce from "~/helpers/utils/debounce"
|
||||
import { logHoppRequestRunToAnalytics } from "~/helpers/fb/analytics"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -191,6 +192,10 @@ export default {
|
||||
})
|
||||
this.client.onConnectionLost = this.onConnectionLost
|
||||
this.client.onMessageArrived = this.onMessageArrived
|
||||
|
||||
logHoppRequestRunToAnalytics({
|
||||
platform: "mqtt",
|
||||
})
|
||||
},
|
||||
onConnectionFailure() {
|
||||
this.connectionState = false
|
||||
|
||||
Reference in New Issue
Block a user