Select Page

Adding Google analytics to Atlassian Bamboo

Adding Google analytics to Atlassian Bamboo

2742514705_fe8fd07b14

As I found no better tutorial on Internet, here is a very very short how to add Google analytics to Atlassian Bamboo, it require a bit of hacking, and these kind of changes will be lost after each upgrade of Bamboo..

Edit the file webapps/ROOT/start.ftl Now put the usual code you get after creating a new analytics profile just before the </body>

<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-10");
pageTracker._trackPageview();
} catch(err) {}</script>

While not ideal, it simply work as expected and let you get insight about Atlassian Bamboo usage using Google analytics.

My Bamboo continuous integration server is available at  http://bamboo.waltercedric.com/

You can also insert Google Adsense using the same trick, but don’t forget that all your changes may be lost if you upgrade to a  new version. I will investigating further if there is not a plugin or an other way to do this. Stay Tuned!

About The Author

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