Hugo theme component to add support for Matomo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
1.0 KiB

<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>
<p><u>{{ i18n "trackingStatus" }}</u></p>
<iframe
style="border: 0; min-width: 100%; min-height: 200px"
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 -}}"
></iframe>