Skip to content

Commit

Permalink
feat: track personabl dashboard seen
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Oct 25, 2024
1 parent ff6ca92 commit e55789b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export const FeatureStrategyForm = ({
eventType: 'seen',
},
});
});
}, []);

const stickiness =
strategy?.parameters && 'stickiness' in strategy?.parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { useDashboardState } from './useDashboardState';
import { MyFlags } from './MyFlags';
import { usePageTitle } from 'hooks/usePageTitle';
import { fromPersonalDashboardProjectDetailsOutput } from './RemoteData';
import { useEffect } from 'react';

const WelcomeSection = styled('div')(({ theme }) => ({
display: 'flex',
Expand Down Expand Up @@ -135,6 +136,14 @@ export const PersonalDashboard = () => {
usePersonalDashboardProjectDetails(activeProject),
);

useEffect(() => {
trackEvent('personal-dashboard', {
props: {
eventType: 'seen',
},
});
}, []);

return (
<MainContent>
<WelcomeSection>
Expand Down

0 comments on commit e55789b

Please sign in to comment.