Adding Tracks Event for Suggestions UI#13622
Conversation
|
You can test the changes on this Pull Request by downloading the APK here. |
jd-alexander
left a comment
There was a problem hiding this comment.
Thanks @mchowning the code looks good and I didn't notice any issues.
I tested both the user and xpost mentioning behavior and they worked as expected. I saw the entries in the logs as well depending on what I was testing eg.
2020-12-17 13:35:34.167 6161-6161/org.wordpress.android.beta I/WordPress-STATS: 🔵 Tracked: suggestion_session_finished, Properties: {"did_select_suggestion":true,"suggestion_type":"user"}
2020-12-17 13:51:59.540 6907-6907/org.wordpress.android.beta I/WordPress-STATS: 🔵 Tracked: suggestion_session_finished, Properties: {"did_select_suggestion":true,"suggestion_type":"xpost"}
This event still needs to be marked as valid in the Tracks directory
If you could take care of this, I would gladly appreciate it 🙇♂️
LGTM 🚢
I'm happy to take care of that. Thanks for the review @jd-alexander ! |
|
Just noting that I'm holding off on merging this until the underlying xposts PR is merged. |
Decided to go ahead and merge into that PR branch now that both are approved. This way we just have a single merge into |
This adds a track event for usage of the suggestions UI.
To Test
Make sure you have
Me -> App Settings -> Privacy Settings -> Collect Information. Personally, when working with tracks I like to leave that unchecked and spend 30 minutes debugging the code to figure out why tracks aren't working before I realize that is unchecked, but I understand if you want to skip straight to flipping the toggle 😉 🤣 .All of the tests below should be done with both (a) xposts and (b) user-mentions. In all the tests, the event should have a
suggestion_typeproperty with a value of either "xpost" or "user" as appropriate.This event still needs to be marked as valid in the Tracks directory. Please either do that as part of reviewing this PR, or remind me that it still needs to be done, and I'm happy to take care of it once this PR is approved. 🙇
Related: p9ugOq-1tR-p2
1. Successfully select a suggestion
+/@or tapping the suggestions button on the format bar.did_select_suggestionastrueand an appropriatesuggestion_type.2. Exiting without selecting a suggestion
+/@or tapping the suggestions button on the format bar.did_select_suggestionasfalseand an appropriatesuggestion_type.PR submission checklist:
RELEASE-NOTES.txtif necessary.