2021-05-14 00:38:36 +00:00
|
|
|
{{ if and (isset .Site.Params "matomo") (eq .Site.Params.matomo.enable true) }}
|
2021-05-13 23:43:49 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
window.addEventListener("load", function() {
|
|
|
|
updateCookieConsent();
|
|
|
|
}, false);
|
|
|
|
</script>
|
|
|
|
<p><u>{{ i18n "cookieConsentStatus" }}</u></p>
|
|
|
|
<p style="line-height: initial;">
|
|
|
|
{{ i18n "cookieConsentText" }} <a href="https://matomo.org/faq/general/faq_146/" target="_blank">{{ i18n "cookieConsentHere" }}</a>. {{ i18n "cookieConsentTrack" }}
|
|
|
|
<p>
|
|
|
|
<span></span>
|
|
|
|
<button style="visibility: hidden;" id="cookiesaction" class="consentCookieButton"></button>
|
|
|
|
</p>
|
|
|
|
</p>
|
2021-05-13 15:39:10 +00:00
|
|
|
<p><u>{{ i18n "trackingStatus" }}</u></p>
|
|
|
|
<iframe
|
|
|
|
style="border: 0; min-width: 100%; min-height: 200px"
|
2021-05-13 16:01:41 +00:00
|
|
|
src="{{- .Site.Params.matomo.url -}}/index.php?module=CoreAdminHome&action=optOut&language={{ .Site.Language.Lang }}&backgroundColor={{- .Site.Params.matomo.trackingstatus.backgroundcolor -}}&fontColor={{- .Site.Params.matomo.trackingstatus.fontcolor -}}&fontSize={{- .Site.Params.matomo.trackingstatus.fontsize -}}&fontFamily={{- .Site.Params.matomo.trackingstatus.fontfamily -}}"
|
2021-05-14 00:38:36 +00:00
|
|
|
></iframe>
|
|
|
|
{{ end }}
|