Update the Matomo script.
This commit is contained in:
parent
7d16ef6c66
commit
fcb9d4d65d
1 changed files with 4 additions and 4 deletions
14
layouts/partials/matomo.html
Normal file
14
layouts/partials/matomo.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!-- Matomo -->
|
||||
<script type="text/javascript">
|
||||
var _paq = window._paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//{{ .Site.Params.piwikTrackerUrl }}/";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '{{ .Site.Params.piwikSiteID }}']);
|
||||
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+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Matomo Code -->
|
||||
Loading…
Reference in a new issue