MediaWiki:Common.js: Difference between revisions

From RevSpace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


<!-- Piwik -->  
<!-- Piwik -->  
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://p.sigio.nl/" : "http://p.sigio.nl/");
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"));
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
Line 11: Line 10:
piwikTracker.enableLinkTracking();
piwikTracker.enableLinkTracking();
} catch( err ) {}
} 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 -->
<!-- End Piwik Tracking Code -->

Revision as of 21:08, 24 December 2011

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

<!-- Piwik --> 
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 ) {}
<!-- End Piwik Tracking Code -->