Last updated May 22, 2024

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
    <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
2
<meta name="robots" content="noindex">

Rate this page: