Skip to content
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

DOP-1340 Part 1: Instrumentation for SearchQuery and SearchSelection #254

Merged
merged 5 commits into from
Aug 17, 2020

Conversation

jestapinski
Copy link
Collaborator

@jestapinski jestapinski commented Aug 14, 2020

JIRA
Staging (Nothing super exciting)

Adding Elle so she can make sure the reporting structure is good.

This PR is the first of two parts (the second being focus/blur) of adding instrumentation for the search experience. Specifically we add two reportAnalytics calls that match a comment left in the ticket.

  • SearchQuery triggers anytime a search is sent to Marian and includes the query in the payload
  • SearchSelection triggers when an option is selected and reports both the overall rank of the item and the url.

Here is a sample of this going through to Segment with the proper event name and payload (this example is for SearchQuery, but you get the idea for SearchSelection. I pulled this from the network tab right off staging.
Screen Shot 2020-08-14 at 1 26 08 PM

Copy link
Member

@sophstad sophstad left a comment

Choose a reason for hiding this comment

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

Great assuming this is what Elle's looking for! 👍

Copy link

@eshwer eshwer left a comment

Choose a reason for hiding this comment

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

This is great, thanks Jordan!

@jestapinski
Copy link
Collaborator Author

🤙

@jestapinski jestapinski merged commit 93f2ccf into mongodb:search-ui Aug 17, 2020
@jestapinski jestapinski deleted the search-instrumentation branch August 17, 2020 14:23
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