mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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',
 | 
			
		||||
            },
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
    }, []);
 | 
			
		||||
 | 
			
		||||
    const stickiness =
 | 
			
		||||
        strategy?.parameters && 'stickiness' in strategy?.parameters
 | 
			
		||||
 | 
			
		||||
@ -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',
 | 
			
		||||
@ -135,6 +136,14 @@ export const PersonalDashboard = () => {
 | 
			
		||||
            usePersonalDashboardProjectDetails(activeProject),
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
    useEffect(() => {
 | 
			
		||||
        trackEvent('personal-dashboard', {
 | 
			
		||||
            props: {
 | 
			
		||||
                eventType: 'seen',
 | 
			
		||||
            },
 | 
			
		||||
        });
 | 
			
		||||
    }, []);
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
        <MainContent>
 | 
			
		||||
            <WelcomeSection>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user