Für das zentrale Pflegen des Zählpixels.

In den Constants:

piwikurl=www.sdfgh.de/stat/

Im Setup:

lib.statcounter = TEXT
lib.statcounter.value (
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://{$piwikurl}" : "http://{$piwikurl}");
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", {$piwikid});
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://{$piwikurl}piwik.php?idsite={$piwikid}" style="border:0" alt="" /></p></noscript>
)

Und im zentralen Template in den Constants:

piwikid=4