gmgauthier.com/themes/blackburn/layouts/partials/piwik_analytics.html

17 lines
659 B
HTML
Raw Normal View History

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']);
_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 }}