chore: move analytics to platform (#2960)
This commit is contained in:
12
packages/hoppscotch-common/src/platform/analytics.ts
Normal file
12
packages/hoppscotch-common/src/platform/analytics.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export type HoppRequestEvent =
|
||||
| {
|
||||
platform: "rest" | "graphql-query" | "graphql-schema"
|
||||
strategy: "normal" | "proxy" | "extension"
|
||||
}
|
||||
| { platform: "wss" | "sse" | "socketio" | "mqtt" }
|
||||
|
||||
export type AnalyticsPlatformDef = {
|
||||
initAnalytics: () => void
|
||||
logHoppRequestRunToAnalytics: (ev: HoppRequestEvent) => void
|
||||
logPageView: (pagePath: string) => void
|
||||
}
|
||||
Reference in New Issue
Block a user