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