Repository navigation
feat: merchant filter event tracking - #922
Conversation
| const val FILTER_APPLY_ACTION = "explore_apply_action" | ||
| const val FILTER_CANCEL_ACTION = "explore_cancel_action" | ||
| const val FILTER_SWIPE_DOWN_ACTION_ON = "explore_swipe_down_on" | ||
| const val FILTER_SWIPE_DOWN_ACTION_OFF = "explore_swipe_down_off" |
There was a problem hiding this comment.
There are some problems with these event names. F.e. explore_select_gift_card - it's not immediately clear whether this event is for the filters or simply for the "pay with a gift card" button click. We would have to go to the documentation to understand when it's logged.
Same for the explore_current_location - might be just a click on "my location button", explore_apply_action - not clear what action, etc.
I suggest having an explore_filter_ prefix for all of these events.
There was a problem hiding this comment.
@Syn-McJ actually all events (besides the one on the Cancel button) are to be recorded when the user clicks the Apply button. This also applies to the location selected, and whether or not the user had the gift card and/or dash payment methods enabled or not
Adding the prefix seems a good idea, thanks !
| analyticsService.logEvent( | ||
| if (isDialogFullyExpanded) | ||
| AnalyticsConstants.ExploreDash.FILTER_SWIPE_DOWN_ACTION_OFF else | ||
| AnalyticsConstants.ExploreDash.FILTER_SWIPE_DOWN_ACTION_ON, bundleOf()) |
There was a problem hiding this comment.
What is the purpose of these events and isDialogFullyExpanded value? As I understood from the story, the Swipe Down AC is simply for tracking the filter dialog dismissal. So it's the same as FILTER_CANCEL_ACTION but if the user swipes down.
There was a problem hiding this comment.
@Syn-McJ regarding the swipe down action I'll have to confirm this with Brian since the Cancel Action from my understanding is to be recorded when the user click the Cancel button from the dialog
Thanks !
There was a problem hiding this comment.
@Syn-McJ it appears we are to handle the swipe action only for manual actions; the idea being to detect whether or not the user performed a swipe gesture in the filter screen and record this value once the button Apply is clicked
There was a problem hiding this comment.
@ClaudeHangui judging by Brian's comments, we just need 1 event when the dialog is closed by dismissing. Thus it's not clear why do you need 2 events here. You probably don't even need to track onSlide as well. Just have a variable that is set when the user clicked on cancel, and then track the "dismissed" event. Variable set = explore_filter_cancel_action, not set = explore_filter_dismissed
There was a problem hiding this comment.
@Syn-McJ I hear you, thanks for insisting on the matter !
- ensure merchant filter events are tracked only for explore dash merchant flow
HashEngineering
left a comment
There was a problem hiding this comment.
Excellent. All event names are less than 40 chars.
Track events for user interaction on filter screen in explore dash
Issue being fixed or feature implemented
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist: