feat: introduce more events into the analytics pipeline (#3156)

This commit is contained in:
Andrew Bastin
2023-06-24 10:18:35 +05:30
committed by GitHub
parent 64c5077506
commit 8c0aff8863
22 changed files with 307 additions and 8 deletions

View File

@@ -165,6 +165,7 @@ import IconCheck from "~icons/lucide/check"
import IconWrapText from "~icons/lucide/wrap-text"
import { currentActiveTab } from "~/helpers/rest/tab"
import cloneDeep from "lodash-es/cloneDeep"
import { platform } from "~/platform"
const t = useI18n()
@@ -248,6 +249,10 @@ watch(
(goingToShow) => {
if (goingToShow) {
request.value = cloneDeep(currentActiveTab.value.document.request)
platform.analytics?.logEvent({
type: "HOPP_REST_CODEGEN_OPENED",
})
}
}
)