CYS: Fix Looker dashboard data (Track & display average loading times) (#51461)

* Track customize_your_store_assembler_hub_editor_loaded event to measure CYS loading time

* Add changelog file
This commit is contained in:
Maikel Perez 2024-09-18 04:59:14 -03:00 committed by Christopher Allford
parent 7557c9be6d
commit ade1326139
No known key found for this signature in database
GPG Key ID: 80E44C778F08A88E
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import { GlobalStylesRenderer } from '@wordpress/edit-site/build-module/componen
/**
* Internal dependencies
*/
import { trackEvent } from '../tracking';
import { editorIsLoaded } from '../utils';
import { BlockEditorContainer } from './block-editor-container';
@ -63,6 +64,7 @@ export const Editor = ( { isLoading }: { isLoading: boolean } ) => {
useEffect( () => {
if ( ! isLoading ) {
editorIsLoaded();
trackEvent( 'customize_your_store_assembler_hub_editor_loaded' );
}
}, [ isLoading ] );

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Track customize_your_store_assembler_hub_editor_loaded event to measure CYS loading time