You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"file-set-in-work-download" events with "(not set)" as the label have been showing up in our google analytics since deploying hyrax 3.5 a little over a week ago. About 90% of our "file-set-in-work-download" events have "(not set)" as the label, while the other ~10% have work ids as the labels.
After some testing, I am finding that
The download link at the top of the work and file set pages ("Download the file" when no preview is available) is triggering the "(not set)" labeled "file-set-in-work-download" events.
The download link in the file set list ("Items" section of the work page) is recording the "file-set-in-work-download" with the work id as the label.
The download link in the universal viewer is not recording any events.
It seems like the problematic download links need to have a data-work-id property added to them.
Rationale
Since "file-set-in-work-download" is used to populate the download stats in the Work Analytics page, a lot of download events are effectively being lost since they have no work id.
Expected behavior
Download links at the top of the work and fileset pages pass the work-id as the label for "file-set-in-work-download" events.
Universal Viewer download option also triggers the same download events (this isn't as important though)
Descriptive summary
"file-set-in-work-download" events with "(not set)" as the label have been showing up in our google analytics since deploying hyrax 3.5 a little over a week ago. About 90% of our "file-set-in-work-download" events have "(not set)" as the label, while the other ~10% have work ids as the labels.
After some testing, I am finding that
I was able to reproduce these results on nurax by monitoring the requests sent to GA when clicking the various download links. I used this work: https://nurax-dev.curationexperts.com/concern/generic_works/9w0323285?locale=en
It seems like the problematic download links need to have a
data-work-id
property added to them.Rationale
Since "file-set-in-work-download" is used to populate the download stats in the Work Analytics page, a lot of download events are effectively being lost since they have no work id.
Expected behavior
Download links at the top of the work and fileset pages pass the work-id as the label for "file-set-in-work-download" events.
Universal Viewer download option also triggers the same download events (this isn't as important though)
Actual behavior
See above.
Steps to reproduce the behavior
Visit:
https://nurax-dev.curationexperts.com/concern/generic_works/9w0323285?locale=en
Open your browsers developer tools, open the network tab, and then click on the various download links. Two events should show up. The problematic behavior sends events with values like:
And the correct behavior sends events like:
The text was updated successfully, but these errors were encountered: