MediaWiki:Common.js: Difference between revisions

From RevSpace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


 
<!-- Piwik -->
/* Piwik - Hosted at SIGIO */
<script type="text/javascript">
/* First SHOULD BE https, but no S yes :) */
var pkBaseURL = (("https:" == document.location.protocol) ? "https://p.sigio.nl/" : "http://p.sigio.nl/");
var pkBaseURL = (("https:" == document.location.protocol) ? "http://p.sigio.nl/" : "http://p.sigio.nl/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
try {
  var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 2);
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 2);
  piwikTracker.trackPageView();
piwikTracker.trackPageView();
  piwikTracker.enableLinkTracking();
piwikTracker.enableLinkTracking();
} catch( err ) {}
} catch( err ) {}
/* End Piwik Tracking Code */
</script><noscript><p><img src="http://p.sigio.nl/piwik.php?idsite=2" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->

Revision as of 21:00, 24 December 2011

/* Any JavaScript here will be loaded for all users on every page load. */

<!-- Piwik --> 
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://p.sigio.nl/" : "http://p.sigio.nl/");
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", 2);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://p.sigio.nl/piwik.php?idsite=2" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->