diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/SegmentConfig.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/SegmentConfig.java index 5a4f77ddde..825d17a9c2 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/SegmentConfig.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/SegmentConfig.java @@ -36,6 +36,10 @@ public class SegmentConfig { @Bean public Analytics analyticsRunner() { + if (commonConfig.isTelemetryDisabled()) { + return null; + } + final String analyticsWriteKey = commonConfig.isCloudHosting() ? writeKey : ceKey; if (StringUtils.isEmpty(analyticsWriteKey)) { // We don't have the Segment Key, returning `null` here will disable analytics calls from AnalyticsService.