Skip to content

Commit

Permalink
Fix Tracks events code
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsreberski committed Jul 30, 2024
1 parent bade03a commit 28dbb36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const ProductCard: FC< ProductCardProps > = props => {
* Sends an event when the card loads
*/
useEffect( () => {
recordEvent( 'jetpack_myjetpack_product_card_loaded', {
recordEvent( 'jetpack_myjetpack_product_card_load', {
product: slug,
status: status,
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ const WelcomeFlow: FC< PropsWithChildren > = ( { children } ) => {

useEffect( () => {
if ( prevStep !== currentStep ) {
recordEvent( 'jetpack_myjetpack_welcome_banner_step_view', { currentStep } );
recordEvent( 'jetpack_myjetpack_welcome_banner_step_view', { current_step: currentStep } );
setPrevStep( currentStep );
}
}, [ currentStep, prevStep, recordEvent ] );

const onDismissClick = useCallback( () => {
recordEvent( 'jetpack_myjetpack_welcome_banner_dismiss_click', {
currentStep,
isUserConnected,
isSiteConnected,
current_step: currentStep,
is_user_connected: isUserConnected,
is_site_connected: isSiteConnected,
} );
dismissWelcomeBanner();
}, [ recordEvent, currentStep, isUserConnected, isSiteConnected, dismissWelcomeBanner ] );
Expand Down

0 comments on commit 28dbb36

Please sign in to comment.