Last updatedFeb 21, 2019

Rate this page:

Adding JavaScript to all pages for Google Analytics

If you wish to add javascript to every page within JIRA (for example for use with Google Analytics), add the following javascript to the appropriate file:

  • stylesheettag.jsp (JIRA 3.13)
  • <atlassian-jira>/includes/decorators/header.jsp (JIRA 4.x)
  • <atlassian-jira>/atlassian-jira/includes/decorators/aui-layout/header.jsp (JIRA 5.x)

    1
    2
    3
    4
    5
    6
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-xxxxx";
    urchinTracker();
    </script>

Note that you can also add a noindex tag, like:

1
<meta name="robots" content="noindex">

This page is outdated for JIRA7, please see jira.atlassian.com/browse/JRA-59587 for details

Rate this page: