diff --git a/mattermost-plugin/webapp/src/index.tsx b/mattermost-plugin/webapp/src/index.tsx index 599844fc8..08b816e49 100644 --- a/mattermost-plugin/webapp/src/index.tsx +++ b/mattermost-plugin/webapp/src/index.tsx @@ -193,7 +193,9 @@ export default class Plugin { anonymousId: TELEMETRY_OPTIONS.anonymousId, }) - TelemetryClient.setTelemetryHandler(new RudderTelemetryHandler()) + rudderAnalytics.ready(() => { + TelemetryClient.setTelemetryHandler(new RudderTelemetryHandler()) + }) } }