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

Work stats page discrepancy in the dates on mouseover for pageviews chart #3551

Closed
tahirpoduska opened this issue Feb 21, 2019 · 5 comments
Closed

Comments

@tahirpoduska
Copy link

Descriptive summary

When you mouse over the dates on the work stats or download stats page page graph, the date displayed is a day older than the date on the x-axis.

Rationale

If a user is collecting data from the chart and using the mouse over to get the page views, the information provided by the mouse over is wrong since it associates the previous day with the page views.

Expected behavior

The date on mouse over should be the same as date on the x-axis

Actual behavior

The date on mouse over is a day older than the date on the x-axis

Steps to reproduce the behavior

  1. Go to nurax work stats page: https://nurax-dev.curationexperts.com/works/qr46r0831/stats?locale=en. Or any other work stats page. Zoom in so you can see the dates on x-axis, if the date range is too long.
    For download stats, go to https://nurax-dev.curationexperts.com/files/rn301153s/stats?locale=en

  2. Then mouse over on a data point (page view). Check the x-axis date and the date on the mouse-over display, they are different but should be the same.

@no-reply no-reply added this to the Backlog milestone Sep 21, 2019
@no-reply no-reply added the needs reproduction Please try to reproduce me! label Sep 21, 2019
@no-reply
Copy link
Member

I can't reproduce on Firefox 68.0.1.

Anyone have ideas about this one?

@no-reply
Copy link
Member

2019-09-20-201257_3840x2160_scrot

@rjkati
Copy link

rjkati commented Mar 24, 2021

I've observed this on https://nurax-dev.curationexperts.com/works/sb397849b/stats?locale=en in Firefox. The date on the x-axis is "March 23, 2021"
analytics

However on mouseover, "March 22, 2021" is displayed:
analytics2

@rjkati rjkati moved this from To Do to Test and Confirm Issue in Hyrax Maintenance WG - January-June 2021 Mar 24, 2021
@rjkati rjkati moved this from Test and Confirm Issue to Planning and Prioritizing in Hyrax Maintenance WG - January-June 2021 Mar 24, 2021
@jlhardes
Copy link
Contributor

Analytics work from Oregon Digital grant will be coming in before end of August. Not likely to address this particular issue but would be good to wait on this issue until after that code is merged.

@jlhardes jlhardes added this to Planning and Prioritizing in Hyrax Maintenance WG - July-December 2021 Aug 11, 2021
@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 <alisha@notch8.com>
Co-authored-by: Sara G <its.sara.geezy@gmail.com>
Co-authored-by: Sara G <geezy@Notch8-MacBook-Pro.local>
Co-authored-by: April Rieger <april@notch8.com>
Co-authored-by: April Rieger <63515648+aprilrieger@users.noreply.github.com>
Co-authored-by: Sara G <platinummix@yahoo.com>
Co-authored-by: tamsin johnson <tomjohnson@ucsb.edu>
@jlhardes
Copy link
Contributor

Analytics updates changed Work stats view to bar chart format and this date discrepancy no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Analytics bug needs reproduction Please try to reproduce me!
Projects
No open projects
Development

No branches or pull requests

4 participants