From fe96819d09ecbacc45acd31bdc6f6c30485c78f7 Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Mon, 20 Nov 2023 14:10:41 +0100 Subject: [PATCH] Add tracking event for the auto-installation not being started --- .../InstallationWizard/InstallStep/index.tsx | 11 +++++++++++ src/components/InstallationWizard/tracking.ts | 2 ++ 2 files changed, 13 insertions(+) diff --git a/src/components/InstallationWizard/InstallStep/index.tsx b/src/components/InstallationWizard/InstallStep/index.tsx index 3e4e9b6d7..f01a95890 100644 --- a/src/components/InstallationWizard/InstallStep/index.tsx +++ b/src/components/InstallationWizard/InstallStep/index.tsx @@ -134,6 +134,17 @@ export const InstallStep = (props: InstallStepProps) => { sendTrackingEvent(trackingEvents.AUTO_INSTALLATION_FLOW_STARTED); engine.startOperation(Operation.INSTALL); + } else { + sendTrackingEvent( + trackingEvents.AUTO_INSTALLATION_PREREQUISITES_WERE_NOT_MET, + { + isFirstLaunch: isFirstLaunch, + digmaStatus: config.digmaStatus, + isDigmaEngineInstalled: config.isDigmaEngineInstalled, + isDockerInstalled: config.isDockerInstalled, + isDockerComposeInstalled: config.isDockerComposeInstalled + } + ); } } }, [config.digmaStatus, previousDigmaStatus, config, engine]); diff --git a/src/components/InstallationWizard/tracking.ts b/src/components/InstallationWizard/tracking.ts index d49739134..1d6aafab7 100644 --- a/src/components/InstallationWizard/tracking.ts +++ b/src/components/InstallationWizard/tracking.ts @@ -15,6 +15,8 @@ export const trackingEvents = addPrefix( DIGMA_CLOUD_AVAILABILITY_NOTIFICATION_EMAIL_ADDRESS_CAPTURED: "digma cloud availability notification email address captured", INSTALLATION_TYPE_BUTTON_CLICKED: "installation type button clicked", + AUTO_INSTALLATION_PREREQUISITES_WERE_NOT_MET: + "auto installation prerequisites were not met", AUTO_INSTALLATION_FLOW_STARTED: "auto installation flow started", AUTO_INSTALLATION_FLOW_FINISHED: "auto installation flow finished", ENGINE_ACTION_BUTTON_CLICKED: "engine action button clicked",