From 7cf9309861615bb4926bae4c79391e708753e4d3 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Tue, 27 Feb 2024 22:32:55 +0530 Subject: [PATCH] Add source 2 --- .../NewfoldInterfaceSkeleton/SiteGen/index.js | 11 +++++++++-- src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js | 4 +++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js b/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js index 422726214..69ea1625f 100644 --- a/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js +++ b/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js @@ -34,6 +34,7 @@ import { ACTION_ONBOARDING_CHAPTER_COMPLETE, ACTION_ONBOARDING_CHAPTER_STARTED, } from '../../../utils/analytics/hiive/constants'; +import { SITEGEN_FLOW } from '../../../data/flows/constants'; // Wrapping the NewfoldInterfaceSkeleton with the HOC to make theme available const ThemedNewfoldInterfaceSkeleton = themeToggleHOC( @@ -217,7 +218,10 @@ const SiteGen = () => { trackOnboardingEvent( new OnboardingEvent( ACTION_ONBOARDING_CHAPTER_COMPLETE, - lastChapter + lastChapter, + { + source: SITEGEN_FLOW, + } ) ); } @@ -231,7 +235,10 @@ const SiteGen = () => { trackOnboardingEvent( new OnboardingEvent( ACTION_ONBOARDING_CHAPTER_STARTED, - currentChapter + currentChapter, + { + source: SITEGEN_FLOW, + } ) ); } diff --git a/src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js b/src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js index d02f4b27c..44c57900c 100644 --- a/src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js +++ b/src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js @@ -95,7 +95,9 @@ const SiteGenSiteLogo = () => { site_logo: siteLogoNew.id, } ); setSiteLogo( siteLogoNew ); - trackOnboardingEvent( new OnboardingEvent( ACTION_LOGO_ADDED ) ); + trackOnboardingEvent( new OnboardingEvent( ACTION_LOGO_ADDED ), { + source: SITEGEN_FLOW, + } ); }; const content = getContents();