From e6a063235763992a7d6a86d275129b16551b8703 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Thu, 25 Apr 2024 01:28:39 +0530 Subject: [PATCH] Fix Tracking Bugs in AI WonderStart Flow --- .../steps/SiteGen/Editor/Header/index.js | 2 +- src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/OnboardingSPA/steps/SiteGen/Editor/Header/index.js b/src/OnboardingSPA/steps/SiteGen/Editor/Header/index.js index 2fbfd5129..7db0bc2b4 100644 --- a/src/OnboardingSPA/steps/SiteGen/Editor/Header/index.js +++ b/src/OnboardingSPA/steps/SiteGen/Editor/Header/index.js @@ -285,7 +285,7 @@ const StepSiteGenEditorHeader = () => { await setFlow( currentData ); await completeFlow(); sendOnboardingEvent( - new OnboardingEvent( ACTION_ONBOARDING_COMPLETE, { + new OnboardingEvent( ACTION_ONBOARDING_COMPLETE, undefined, { source: SITEGEN_FLOW, } ) ); diff --git a/src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js b/src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js index 96fdf63be..6dcce1e95 100644 --- a/src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js +++ b/src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js @@ -134,11 +134,12 @@ const SiteGenSiteLogo = () => { if ( siteLogo ) { trackOnboardingEvent( new OnboardingEvent( - ACTION_LOGO_ADDED - ), - { - source: SITEGEN_FLOW, - } + ACTION_LOGO_ADDED, + undefined, + { + source: SITEGEN_FLOW, + } + ) ); } } }