-
Notifications
You must be signed in to change notification settings - Fork 500
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
analytics tracking broken for download button #6725
Comments
mheppler
added a commit
that referenced
this issue
Mar 6, 2020
qqmyers
added a commit
to QualitativeDataRepository/dataverse
that referenced
this issue
Mar 6, 2020
Changed selector in analytics exmaple to be more precise [ref IQSS#6725]
qqmyers
added a commit
to GlobalDataverseCommunityConsortium/dataverse
that referenced
this issue
Dec 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hitting download shows the following in the browser javascript console:
Uncaught TypeError: Cannot read property 'indexOf' of undefined
at stripId (dataset.xhtml?persistentId=doi:10.18738/T8/F3QE0H:135)
at getFileId (dataset.xhtml?persistentId=doi:10.18738/T8/F3QE0H:128)
at HTMLAnchorElement. (dataset.xhtml?persistentId=doi:10.18738/T8/F3QE0H:18)
at HTMLDocument.dispatch (jquery.js.xhtml?ln=primefaces&v=6.2:2)
at HTMLDocument.v.handle (jquery.js.xhtml?ln=primefaces&v=6.2:2)
I think this code used to work, but it could be a typo in the example file in the documentation as well. In either case, changing the selector allows the right file identifier to be found so that the download can be tracked in google analytics. PR to follow.
The text was updated successfully, but these errors were encountered: