Select Page

Adding Google Analytics to Atlassian JIRA

As I found no better tutorial on Internet, here is a very very short how to add Google analytics to Atlassian JIRA

Edit the file atlassian-jira/includes/decorators/stylesheettag.jsp

This file is responsible for adding CSS links in html and is included in all pages. Now put the usual code you get after creating a new analytics profile

<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(“UA-88600-8”);
pageTracker._trackPageview();
} catch(err) {}</script>

While not ideal, this method add the #JavaScript in the HTML <head> instead of the HTML <body>, it simply work as expected and let you get insight about JIRA usage using Google Analytics.

About The Author

Cédric Walter

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.

Categories