analytics

Analytics is the discovery and communication of meaningful patterns in data. Especially valuable in areas rich with recorded information, analytics relies on the simultaneous application of statistics, computer programming and operations research to quantify performance. read more at WikiPedia

  • 2742514705_fe8fd07b14

    As I found no better tutorial on Internet, here is a very very short how to add Google analytics to AtlassianBamboo, 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.ftlNow 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 +
    &160;&160;&160; "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&160; 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&160; new version. I will investigating further if there is not a plugin or an other way to do this. Stay Tuned!

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

    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.

  • MediaWiki-logo I search and search on how to add a Google analytics to MediaWiki, seems pretty damn simple as long as you know which templates you are using as default.

    The current skins is configured in LocalSettings.php

    ## Default skin: you can change the default skin. Use the internal symbolic
    ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
    $wgDefaultSkin = 'monobook';

    Head to {mediawiki_root}/skins and edit&160; the right skins, for me it is MonoBook.php

    Just add your analytics scripts before the </body>. Now MediaWiki will add the marker in every page

    Before

    <?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>
    <?php $this->html('reporttime') ?>
    <?php if ( $this->data['debug'] ): ?>
    <!-- Debug output:
    <?php $this->text( 'debug' ); ?>
    -->
    <?php endif; ?>
    </body></html>

    After

    <?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>
    <?php $this->html('reporttime') ?>
    <?php if ( $this->data['debug'] ): ?>
    <!-- Debug output:
    <?php $this->text( 'debug' ); ?>
    -->
    <?php endif; ?>
    <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-7"); pageTracker._trackPageview(); } catch(err) {}</script>
    </body></html>