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:
parent
7557c9be6d
commit
ade1326139
|
@ -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 ] );
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
Track customize_your_store_assembler_hub_editor_loaded event to measure CYS loading time
|
Loading…
Reference in New Issue