Details
-
Bug
-
Resolution: Fixed
-
Medium
-
6.0.4, 6.0.6
-
Noticed on OnDemand,
not tested on stand-alone.Stop Google Analytics from loading, by using a plugin such as Ghostery for Chrome.
Also noted on JIRA stand-alone 5.1.3
-
6
-
Description
To reproduce:
- Ensure Google Analytics has not loaded
- Open an issue that appears on a RapidBoard in standard view mode
- Click the 'View on Board' link
This error will probably arise elsewhere, but this is the only way found so far.
A sub-routine is called that tries to log the analytics of this page click, however the presence of analytics is not validated and so causes an error.
This sub-routine should degrade gracefully by simply skipping the analytics logging when the Google Analytics library failed to load.
console error log
Firing analytics event - synchronous batch.js:2958 Category: gh.issueaction.gotorapidboard batch.js:2958 Action: direct batch.js:2958 Label: batch.js:2958 Version: 6.0.6 batch.js:2958 Uncaught TypeError: Object #<Object> has no method '_getTrackerByName' com.pyxis.greenhopper.jira:gh-help-analytics.js:71 A com.pyxis.greenhopper.jira:gh-help-analytics.js:71 (anonymous function) com.pyxis.greenhopper.jira:gh-help-analytics.js:152 f.event.dispatch batch.js:1186 h.handle.i batch.js:1106 f.event.trigger batch.js:1163 (anonymous function) batch.js:1338 e.extend.each batch.js:483 e.fn.e.each batch.js:348 f.fn.extend.trigger batch.js:1337 JIRA.FormDialog.extend._performRedirect batch.js:2533 ajaxOptions.complete batch.js:20713 completeHandler batch.js:11490 n batch.js:593 o.fireWith batch.js:638 w batch.js:2498 d batch.js:2667
com.pyxis.greenhopper.jira:gh-help-analytics.js
function A(F, G, E) { D(F, G, E, true); _gat._getTrackerByName("greenhopper")._trackEvent(F, G, E) Uncaught TypeError: Object #<Object> has no method '_getTrackerByName' Uncaught TypeError: Object #<Object> has no method '_getTrackerByName' }