Move the noscript img tag to the "footer"
This commit is contained in:
parent
ea5e0ff7c3
commit
473cc87754
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,7 @@
|
|||
{{ if and (isset .Site.Params "matomo") (eq .Site.Params.matomo.enable true) }}
|
||||
<noscript>
|
||||
<img referrerpolicy="no-referrer-when-downgrade" src="{{- .Site.Params.matomo.url -}}/matomo.php?idsite={{- .Site.Params.matomo.id -}}&rec=1" style="border:0;" alt="" />
|
||||
</noscript>
|
||||
<script type="text/javascript">
|
||||
window.addEventListener("load", function() {
|
||||
shouldShowPopup();
|
||||
|
|
|
@ -24,8 +24,5 @@
|
|||
})();
|
||||
</script>
|
||||
<script src="{{ "assets/hugo-matomo.js" | absURL }}"></script>
|
||||
{{ if and (isset .Site.Params.matomo "noscript") (eq .Site.Params.matomo.noscript true) }}
|
||||
<noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="{{- .Site.Params.matomo.url -}}/matomo.php?idsite={{- .Site.Params.matomo.id -}}&rec=1" style="border:0;" alt="" /></p></noscript>
|
||||
{{ end }}
|
||||
<!-- End Matomo Code -->
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue