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

analytics tracking broken for download button #6725

Closed
qqmyers opened this issue Mar 4, 2020 · 0 comments · Fixed by #6726
Closed

analytics tracking broken for download button #6725

qqmyers opened this issue Mar 4, 2020 · 0 comments · Fixed by #6726

Comments

@qqmyers
Copy link
Member

qqmyers commented Mar 4, 2020

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.

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
poikilotherm pushed a commit to poikilotherm/dataverse that referenced this issue Dec 15, 2021
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