Skip to content

Commit

Permalink
Add source 2
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Feb 27, 2024
1 parent 683ee30 commit 7cf9309
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -217,7 +218,10 @@ const SiteGen = () => {
trackOnboardingEvent(
new OnboardingEvent(
ACTION_ONBOARDING_CHAPTER_COMPLETE,
lastChapter
lastChapter,
{
source: SITEGEN_FLOW,
}
)
);
}
Expand All @@ -231,7 +235,10 @@ const SiteGen = () => {
trackOnboardingEvent(
new OnboardingEvent(
ACTION_ONBOARDING_CHAPTER_STARTED,
currentChapter
currentChapter,
{
source: SITEGEN_FLOW,
}
)
);
}
Expand Down
4 changes: 3 additions & 1 deletion src/OnboardingSPA/steps/SiteGen/SiteLogo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7cf9309

Please sign in to comment.