1
0
Fork 0
hugo-matomo/layouts/shortcodes/matomo_privacy.html

21 lines
1.1 KiB
HTML
Raw Permalink Normal View History

{{ 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 -}}"
></iframe>
{{ end }}