-
Notifications
You must be signed in to change notification settings - Fork 214
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
Add result kind to the SELECT_SEARCH_RESULT
event
#3173
Conversation
Size Change: +108 B (0%) Total Size: 931 kB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Since this is only adding a new field to events shipped to Plausible (not changing one), we don't need to take any extra action on existing events, do we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes make sense to me 👍! Thanks. I have a nit but it's totally ignorable.
Post-merge update: I forgot to mark the nit I had 🤦.
Fixes
Related to #3149 by @obulat
Description
The
SELECT_SEARCH_RESULT
event has arelatedTo
property that shows whether a search result or a related media was clicked. However, it is not possible to get a ratio of related results to search results because allrelatedTo
identifiers are different. So, you can see how many selected images were related to a particular image, but not "what percentage of clicked images was from the search results and what percentage was from the related section".This PR adds a
kind
property to theSELECT_SEARCH_RESULT
event that will allow us to see whether a search result, a related result, or (soon) an additional search view collection result was clicked.It also renames the props for Image grid to match the props of the audio collection.
Testing Instructions
Run the app and click on the search results or related results (image and audio). You should see the
SELECT_SEARCH_RESULT
event logged with the correctkind
.Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin