-
Notifications
You must be signed in to change notification settings - Fork 218
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
Analytics: Add SELECT_SEARCH_RESULT event #2373
Conversation
Size Change: +1.57 kB (0%) Total Size: 847 kB
ℹ️ View Unchanged
|
33f6467
to
b34c7f6
Compare
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.
LGTM and the events are firing off locally!
props: { | ||
image, | ||
searchTerm: "cat", | ||
aspectRatio: "square", |
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.
Is this prop necessary for this test?
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.
square
is the default for aspectRatio
, so you're right, we can remove it.
Based on the medium urgency of this PR, the following reviewers are being gently reminded to review this PR: @dhruvkb Excluding weekend1 days, this PR was ready for review 4 day(s) ago. PRs labelled with medium urgency are expected to be reviewed within 4 weekday(s)2. @obulat, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings. Footnotes
|
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.
LGTM! Tested perfectly locally in all the places 🎉
Something to note is that homepage images do not have this event, so the total number of works "navigated to" on the site from another page of the site won't necessarily be equal to the number of SELECT_SEARCH_RESULT events. I doubt this will have any bearing on anything, but I could easily see some discrepancy between these causing us to scratch our heads in the future 😂
frontend/test/unit/specs/components/VSearchResultsGrid/v-image-cell.spec.js
Outdated
Show resolved
Hide resolved
Actually, we have |
Fixes
Fixes #1079 by @dhruvkb
Description
This PR sends analytics events when the user selects one of the search results on the search page or one of the related media items on the single result page.
Testing Instructions
Try selecting results on the search pages (all content/image/audio) or the related items on the single result page. You should see the events in Plausible UI or in the console
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin