If someone is interested, I think it could be simplified to:
<!-- Piwik --> <script type="text/javascript" src="//stats.wikilovesmonuments.org/piwik.js"></script> <script type="text/javascript"> try { var piwikTracker = Piwik.getTracker("//stats.wikilovesmonuments.org/piwik.php", YOURID); piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); } catch( err ) {} </script><noscript><p><img src="http://stats.wikilovesmonuments.org/piwik.php?idsite=YOURID" style="border:0" alt="" /></p></noscript> <!-- End Piwik Tracking Code -->