-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand analytics for block insertion/replacement #5976
Conversation
Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job! |
Hey @fluiddot 👋 I have added you as a reviewer for this PR, let me know if you could take a look whenever you can. Thank you! |
Sure, I can take a look 👀 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the events generated and confirmed it's adding the proper inserter source 🎊. However, I noticed that we are generating the editor_block_inserted
event in more cases than before (reference).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎊 ! I've added some minor comments related to function documentation, but feel free to skip them.
Related PRs:
This PR improves the analytics we have related to block insertion, it brings some code from Calypso to take into account block replacement and getting the source of where a block was inserted or replaced.
To test:
Precondition:
Inserter
editor_block_inserted
with theinsert_method
property withheader-inserter
Quick inserter
editor_block_inserted
with theinsert_method
property withquick-inserter
Slash inserter
editor_block_inserted
with theinsert_method
property withslash-inserter
PR submission checklist: