-
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
Iqss/6725 analytics bug #6726
Iqss/6725 analytics bug #6726
Conversation
@qqmyers looking at the latest and greatest version of this example code in the Is it possible this may only be an issue on your fork? |
The issue is in line 120 - the '>' character there only finds direct children which is not the case. It should be removed. |
D'oh. Apologies. I was seeing your changes backwards, while looking at our analytics code and wonder how we already had the direct child selector... 🤦♂. But, while I was in there, I did do a little more digging into the dataset pg source code for the files table, and looking at those
I haven't tested it, but I believe we could use |
@mheppler - that looks fine too. If you change it, the release notes should change to match. |
@qqmyers PR QualitativeDataRepository#39 submitted. Release notes did not specify the change, so it did not need revising. |
Changed selector in analytics exmaple to be more precise [ref IQSS#6725]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
What this PR does / why we need it: Fixes a bug in the analytics-code.html example file in the docs, which breaks button-level tracking for Google analytics.
Which issue(s) this PR closes:
Closes #6725
Special notes for your reviewer:
Suggestions on how to test this:
The issue shows a javascript console error that should go away when the fix is applied.
Does this PR introduce a user interface change?:
Is there a release notes update needed for this change?:
Up to you - I created one. To fix the bug, installations have to reinstall the analytics-code.html file or modify their existing one. It does look to me like this has been broken since ~v.417 - hard to tell if it was a bug/typo in the code or if a UI change broke things at some point. (Pretty sure it worked to start but I can't say when the UI change might have happened.) That said, it only affects installs that have deployed a custom analytics file though.
Additional documentation: