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

file-set-in-work-download events with (not set) label/id #5956

Closed
bbpennel opened this issue Feb 8, 2023 · 0 comments · Fixed by #5959
Closed

file-set-in-work-download events with (not set) label/id #5956

bbpennel opened this issue Feb 8, 2023 · 0 comments · Fixed by #5959

Comments

@bbpennel
Copy link
Contributor

bbpennel commented Feb 8, 2023

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

  1. 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.
  2. 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.
  3. The download link in the universal viewer is not recording any events.

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:

5(file-set*file-set-download*ns0646239)
5(file-set-in-work*file-set-in-work-download)

And the correct behavior sends events like:

5(file-set*file-set-download*ns0646239)
5(file-set-in-work*file-set-in-work-download*9w0323285)
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.

1 participant