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

Single Work Analytics Page #2566

Closed
nestorw opened this issue Jan 24, 2018 · 4 comments
Closed

Single Work Analytics Page #2566

nestorw opened this issue Jan 24, 2018 · 4 comments

Comments

@nestorw
Copy link
Contributor

nestorw commented Jan 24, 2018

Descriptive summary

Analytics for a single work

c7-analytics-work

@nestorw nestorw added this to the 2.x - Accessibility milestone Jan 24, 2018
@vantuyls
Copy link

vantuyls commented Jan 24, 2018

Needs:

  • metadata summary (see design mockup)
  • button to View Work (takes one to the work showpage)
  • total file size table
  • activity summary with table
  • monthly activity with table
  • top downloads table
  • download buttons for the above tables
  • return to work reports link (top right of the page - takes one to the work reports page)

@no-reply no-reply modified the milestones: Accessibility, 3.x series Sep 23, 2019
@orangewolf orangewolf mentioned this issue Sep 1, 2021
orangewolf added a commit that referenced this issue Dec 3, 2021
Fixes #4564 #4530 #3551 #2542 #2566 Maybe others?

This work was sponsored by Oregon Digital as part of the IMLS National Leadership Grant to support its project, Open Impact: Developing Robust Analytics for Open Source Solution Bundle Hyrax.

This code overhauls the built in display of reports and metrics for Hyrax. It makes it compatible with both GA v3 and Matomo and lays ground work for other adapters in the future.

Changes proposed in this pull request:

Turn analytics on/off, choose your analytics provider of choice (google or matomo), and set api details in an ENV file
Wire up graphs on dashboard to work based off analytics data (number of total visitors, returning visitors, new user signups)
New tab in dashboard sidebar for "analytics reports". Dropdown includes options for "Work Reports" or "Collection Reports"
Design and develop Work and Collection reports to show views and download counts for individual files. Data is set by default to last 30 days, by month by month, as well as custom date range. This data is pulled in directly from Google or Matomo API's.
View and Download counts are available to be exported to .csv format

Co-authored-by: Alisha Evans <[email protected]>
Co-authored-by: Sara G <[email protected]>
Co-authored-by: Sara G <[email protected]>
Co-authored-by: April Rieger <[email protected]>
Co-authored-by: April Rieger <[email protected]>
Co-authored-by: Sara G <[email protected]>
Co-authored-by: tamsin johnson <[email protected]>
@jlhardes
Copy link
Contributor

Testing on Nurax-dev with Analytics update and no analytics service connected shows the Works Report for a single work has all of these updates. There's no download option in a single work report but there is an export option for the Top Works table in the Works Report for all works. That includes both page views and downloads info (and actually seems to include all Works so there is no cut-off for Top Works). The metadata showing per work in the single work report seems to somewhat match the mock-up although I haven't seen any "Approved by", "Published on", or "Last modified on" info for any single work reports I viewed (Nurax-dev data can be light on activities like those but every single work report is showing deposited date and user info). The requests in this issue seem satisfied to me. @nestorw it has been a while, but do you have any concerns or questions?

@jlhardes
Copy link
Contributor

Correction: Nurax-dev is connected to Google Analytics and that is why the single work analytics views and reports are available. When there is no analytics service connected there are no analytics graphs available from the Work view and the Analytics reports on the Dashboard (for Works and Collections) are also not available.

@jlhardes
Copy link
Contributor

Closing issue as checklist is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants