[Modal Layout Picker] Add analytics metrics for the layout picker#13097
[Modal Layout Picker] Add analytics metrics for the layout picker#13097
Conversation
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/main/WPMainActivity.java # WordPress/src/main/java/org/wordpress/android/ui/pages/PagesFragment.kt # WordPress/src/main/java/org/wordpress/android/viewmodel/mlp/ModalLayoutPickerViewModel.kt # build.gradle
# Conflicts: # libs/gutenberg-mobile
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APK here. |
# Conflicts: # WordPress/src/test/java/org/wordpress/android/viewmodel/mlp/ModalLayoutPickerViewModelTest.kt
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/mlp/ModalLayoutPickerFragment.kt # WordPress/src/main/java/org/wordpress/android/viewmodel/mlp/ModalLayoutPickerViewModel.kt # build.gradle
|
Hey @antonis, This is looking good for the events we're tracking. One thing I noticed that might be worth considering. Since we're reusing the same editor with the preview We're also firing the events |
|
Hello @chipsnyder 👋 ,
I'm not sure either what is the correct approach on this. Implementation wise I can mute the extra logging by passing the On the other hand leaving this as is resembles the behaviour when the MLP ON MLP OFF cc @Tug |
Seems like a good opportunity to fix event parity between iOS and Android. |
This is the flow on iOS as well in the way it is today. I think this case doesn't fully apply though because the selection of the template technically occurs outside of the editor session. The big difference here is Android loads the same editor fragment for previews as it does for editing. The difference in analytics though really comes down to describing the different implementations so to me the different analytics wouldn't be a big deal unless we use these for important funnels. I think what might help us decide would be, do we use the events |
|
@chipsnyder , @Tug Thinking of this again the best approach is to align with iOS on this. The behaviour when I fixed this with 0812184 |
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostActivity.java # WordPress/src/test/java/org/wordpress/android/viewmodel/mlp/ModalLayoutPickerViewModelTest.kt
chipsnyder
left a comment
There was a problem hiding this comment.
All is working well for me. Thanks for making those adjustments!
Fixes: wordpress-mobile/gutenberg-mobile#2454
Related PRs:
Depends on: #13085
Description
This PR adds analytics metrics to the layout picker's actions
To test:
An easy way to test for these analytics is to debug the app and filter Logcat to look for the string
🔵 Tracked:Layout Picker should show when creating a new page from My Site or Site Pages the Modal Layout Picker appears.
Template Create Page
🔵 Tracked: editor_session_template_apply, Properties: {"has_unsupported_blocks":"0","template":"about-4","editor":"gutenberg","content_type":"new","session_id":"ba5e7e37-a29e-48a8-bbac-7e34625ee5c0","post_type":"page","blog_type":"wpcom","editor_has_hw_disabled":"0"}Template Preview
🔵 Tracked: editor_session_template_preview, Properties: {"has_unsupported_blocks":"0","template":"about-4","editor":"gutenberg","content_type":"new","session_id":"af74365c-abbe-42fc-b969-bafc7c3745b1","post_type":"page","blog_type":"wpcom","editor_has_hw_disabled":"0"}Template Preview, then Create
🔵 Tracked: editor_session_template_apply, Properties: {"has_unsupported_blocks":"0","template":"about-4","editor":"gutenberg","content_type":"new","session_id":"ba5e7e37-a29e-48a8-bbac-7e34625ee5c0","post_type":"page","blog_type":"wpcom","editor_has_hw_disabled":"0"}🔵 Tracked: editor_session_template_preview, Properties: {"has_unsupported_blocks":"0","template":"about-4","editor":"gutenberg","content_type":"new","session_id":"af74365c-abbe-42fc-b969-bafc7c3745b1","post_type":"page","blog_type":"wpcom","editor_has_hw_disabled":"0"}Validate Editor Session
🔵 Tracked: editor_session_start, Properties: {"has_unsupported_blocks":"0","template":"about-4","editor":"gutenberg","content_type":"new","startup_time_ms":7461,"session_id":"ba5e7e37-a29e-48a8-bbac-7e34625ee5c0","post_type":"page","blog_type":"wpcom","editor_has_hw_disabled":"0","unsupported_blocks":[]}Create a Blank Page
Expect The events mentioned in the last step to not have the template field populated.
PR submission checklist:
RELEASE-NOTES.txtif necessary.