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:
parent
ff6ca920ce
commit
a8d608792d
@ -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
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user