Skip to content

Commit

Permalink
feat: Track editor session start event
Browse files Browse the repository at this point in the history
Enable more robust editor session analysis.
  • Loading branch information
dcalhoun committed Jan 7, 2025
1 parent dbc2244 commit 941790d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,16 @@ class NewGutenbergViewController: UIViewController, PostEditor, PublishingEditor
}

extension NewGutenbergViewController: GutenbergKit.EditorViewControllerDelegate {
func editorDidLoad(_ viewContoller: GutenbergKit.EditorViewController) {
if !editorSession.started {
// Note that this method is also used to track startup performance
// It assumes this is being called when the editor has finished loading
// If you need to refactor this, please ensure that the startup_time_ms property
// is still reflecting the actual startup time of the editor
editorSession.start()
}
}

func editor(_ viewContoller: GutenbergKit.EditorViewController, didDisplayInitialContent content: String) {
// Do nothing
}
Expand Down

0 comments on commit 941790d

Please sign in to comment.