Skip to content

feat: merchant filter event tracking - #922

Merged
HashEngineering merged 11 commits into
masterfrom
feature-explore-dash-firebase-merchant-filter
Mar 27, 2022
Merged

HashEngineering merged 11 commits into
masterfrom
feature-explore-dash-firebase-merchant-filter

Conversation

@ClaudeHangui

@ClaudeHangui ClaudeHangui commented Mar 23, 2022 •

Copy link
Copy Markdown
Contributor

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?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@Syn-McJ Syn-McJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments

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"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ClaudeHangui ClaudeHangui Mar 24, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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())

@Syn-McJ Syn-McJ Mar 24, 2022 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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 !

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Syn-McJ I hear you, thanks for insisting on the matter !

@Syn-McJ Syn-McJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

- ensure merchant filter events are tracked only for explore dash merchant flow

@HashEngineering HashEngineering left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. All event names are less than 40 chars.

@HashEngineering
HashEngineering merged commit 288e48f into master Mar 27, 2022
@HashEngineering
HashEngineering deleted the feature-explore-dash-firebase-merchant-filter branch July 20, 2022 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants