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();