Moving logic inside matomo partial.
This commit is contained in:
parent
63399e6bf8
commit
c00bb6187d
2 changed files with 3 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
{{- block "head" . }}{{ end }}
|
{{- block "head" . }}{{ end }}
|
||||||
{{ partial "meta_json_ld.html" . }}
|
{{ partial "meta_json_ld.html" . }}
|
||||||
{{ partial "scripts.html" . }}
|
{{ partial "scripts.html" . }}
|
||||||
{{ if and .Site.Params.piwikTrackerUrl .Site.Params.piwikSiteID }}{{ partialCached "matomo.html" . }}{{ end -}}
|
{{ partialCached "matomo.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ if and .Site.Params.piwikTrackerUrl .Site.Params.piwikSiteID -}}
|
||||||
<script>
|
<script>
|
||||||
var _paq = window._paq || [];
|
var _paq = window._paq || [];
|
||||||
_paq.push(['trackPageView']);
|
_paq.push(['trackPageView']);
|
||||||
|
|
@ -10,3 +11,4 @@
|
||||||
g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
{{ end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue