1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

feat: track personal dashboard seen (#8539)

This commit is contained in:
Mateusz Kwasniewski 2024-10-25 09:29:14 +02:00 committed by GitHub
parent ff6ca920ce
commit a8d608792d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -227,7 +227,7 @@ export const FeatureStrategyForm = ({
eventType: 'seen', eventType: 'seen',
}, },
}); });
}); }, []);
const stickiness = const stickiness =
strategy?.parameters && 'stickiness' in strategy?.parameters strategy?.parameters && 'stickiness' in strategy?.parameters

View File

@ -20,6 +20,7 @@ import { useDashboardState } from './useDashboardState';
import { MyFlags } from './MyFlags'; import { MyFlags } from './MyFlags';
import { usePageTitle } from 'hooks/usePageTitle'; import { usePageTitle } from 'hooks/usePageTitle';
import { fromPersonalDashboardProjectDetailsOutput } from './RemoteData'; import { fromPersonalDashboardProjectDetailsOutput } from './RemoteData';
import { useEffect } from 'react';
const WelcomeSection = styled('div')(({ theme }) => ({ const WelcomeSection = styled('div')(({ theme }) => ({
display: 'flex', display: 'flex',
@ -135,6 +136,14 @@ export const PersonalDashboard = () => {
usePersonalDashboardProjectDetails(activeProject), usePersonalDashboardProjectDetails(activeProject),
); );
useEffect(() => {
trackEvent('personal-dashboard', {
props: {
eventType: 'seen',
},
});
}, []);
return ( return (
<MainContent> <MainContent>
<WelcomeSection> <WelcomeSection>