[MM-59365] Paid End-User features company metric - "Passive keyword tracking" Telemetry (#28734)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
038d59560e
Коммит
89c6fbc1e9
@@ -4327,7 +4327,8 @@ export default class Client4 {
|
||||
this.telemetryHandler.trackEvent(this.userId, this.userRoles, category, event, props);
|
||||
}
|
||||
}
|
||||
trackFeatureEvent(featureName: string, event: string, props?: any) {
|
||||
|
||||
trackFeatureEvent(featureName: string, event: string, props: Record<string, unknown> = {}) {
|
||||
if (this.telemetryHandler) {
|
||||
this.telemetryHandler.trackFeatureEvent(this.userId, this.userRoles, featureName, event, props);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
export interface TelemetryHandler {
|
||||
trackEvent: (userId: string, userRoles: string, category: string, event: string, props?: any) => void;
|
||||
trackFeatureEvent: (userId: string, userRoles: string, featureName: string, event: string, props?: any) => void;
|
||||
trackEvent: (userId: string, userRoles: string, category: string, event: string, props?: Record<string, unknown>) => void;
|
||||
trackFeatureEvent: (userId: string, userRoles: string, featureName: string, event: string, props?: Record<string, unknown>) => void;
|
||||
pageVisited: (userId: string, userRoles: string, category: string, name: string) => void;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user