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)

    <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:

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

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

Was this page helpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport