2021-03-30 20:50:34 +00:00
|
|
|
{{ with .Site.Params.piwikAnalytics }}
|
|
|
|
<!-- Piwik -->
|
|
|
|
<script type="text/javascript">
|
|
|
|
var _paq = _paq || [];
|
|
|
|
_paq.push(['trackPageView']);
|
|
|
|
_paq.push(['enableLinkTracking']);
|
|
|
|
(function() {
|
|
|
|
var u="{{ .piwikroot }}";
|
|
|
|
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
2021-11-20 18:52:12 +00:00
|
|
|
_paq.push(['setSiteId', {{ .siteid }}])
|
2021-03-30 20:50:34 +00:00
|
|
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
|
|
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
<noscript><p><img src="{{ .piwikroot }}piwik.php?idsite={{ .siteid }}" style="border:0;" alt="" /></p></noscript>
|
|
|
|
{{ end }}
|