Web stats for GNOME websites (Piwik)

Jeff Schroeder has installed Piwik on the GNOME servers such that we can get more advanced web statistics. Based on that info the marketing and the web team can for instance try to improve conversion rates of Friend of GNOME donations.

For the gnomeweb-wml and the foundation-web module I’ve changed the scripting for *.wml files such that the necessary piwik tags are automatically added.

I’ve noticed that not all web pages use *.wml files to generate html pages. So if you want to track your pages you’ll need to either convert your pages to wml files or put the tracking tag yourself on each page.

For pages on www.gnome.org the tracking tag is the following

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://webstats.gnome.org/" : "http://webstats.gnome.org/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://webstats.gnome.org/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript>
<!-- End Piwik Tag -->

For pages on projects.gnome.org you need to add the following

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://webstats.gnome.org/" : "http://webstats.gnome.org/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 4);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://webstats.gnome.org/piwik.php?idsite=4" style="border:0" alt=""/></p></noscript>
<!-- End Piwik Tag -->

The web statistics are available at http://webstats.gnome.org. If you would like to have an account on that just send me your GNOME login account and I’ll make an account and sent you your password.

Comments are closed.