Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-6524

If Google Analytics has failed to load, its absence causes redirects to fail.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 6.1
    • 6.0.4, 6.0.6
    • AgileBoard
    • 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

    Description

      To reproduce:

      1. Ensure Google Analytics has not loaded
      2. Open an issue that appears on a RapidBoard in standard view mode
      3. 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'
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            1f04b9b65b31 Andrew Ardill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: