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

Track and report on search and navigation success #3644

Closed
benwbrum opened this issue May 12, 2023 · 2 comments · Fixed by #3679
Closed

Track and report on search and navigation success #3644

benwbrum opened this issue May 12, 2023 · 2 comments · Fixed by #3679
Assignees

Comments

@benwbrum
Copy link
Owner

How findable are projects? How useful is our search feature for volunteers looking for something to work on?

We'd like to track these things:

  • What are non-owner users (registered or not logged in) searching for?
  • When they perform a search, do they get any results?
  • If they get results, do they click on any of them? (This indicates that the results were potentially useful)
  • If they click on results, do they make any contributions?

For the data gathering portion of this, we can start by modifying the search form as follows:

  • Create a new SearchAttempt model, with attributes for search text, hit count, click through count, and contributions.
  • Rather than a field that posts to an action, have the search function hit the #create action of the new search_attempt_controller. This would redirect to the show action of that controller, which would contain the current object displaying the search results. It would also update the hit count on the search attempt record. (If necessary in later stages, we might also need to load this search attempt object into the user's session.)
  • If a user clicks on a project, we should increment the click through count on the search attempt record. While displaying the collection, we should also display a breadcrumb letting the user get back to their search results (closing Transcriber can't go back to the list of search terms after clicking on a page #3608).
  • If a user logs a deed on a project, we should find the relevant search attempt object (if any) and increment the contributions.

For the display portion, we should (at minimum) add a Searches tab to the admin dashboard. This should list all search_attempts, with relevant fields. We should also add a roll-up statistic or two to the dashboard showing average successful searches recently. (@saracarl, what else are we interested in here?)

@sylvieed
Copy link
Collaborator

sylvieed commented May 19, 2023

Should a SearchAttempt to belong to a user? (optionally, if they are logged in / not a guest)

@benwbrum
Copy link
Owner Author

My temptation is to say "yes", however that feels a little creepy since people generally don't expect their search history to be logged. Let's not, but attach the Ahoy visit ID so that we can aggregate all the searches in a session without knowing which particular user that was.

sylvieed added a commit that referenced this issue Jun 20, 2023
sylvieed added a commit that referenced this issue Jun 20, 2023
sylvieed added a commit that referenced this issue Aug 1, 2023
saracarl added a commit that referenced this issue Aug 22, 2023
benwbrum added a commit that referenced this issue Aug 31, 2023
Remove search attempt from session when searcher leaves results for #3644
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 a pull request may close this issue.

2 participants