1
0
Fork 0
hugo-matomo/layouts/partials/matomo_cookie_popup.html

15 lines
740 B
HTML
Raw Permalink Normal View History

2021-05-13 21:06:29 +00:00
{{ 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>
2021-05-13 21:06:29 +00:00
<script type="text/javascript">
window.addEventListener("load", function() {
2021-05-13 23:43:49 +00:00
shouldShowPopup();
2021-05-13 21:06:29 +00:00
}, false);
</script>
<div class="cookie-banner" style="display:none">
<p>{{ i18n "popupMsg" }}<a href="{{- .Site.Params.matomo.policyurl -}}"> <u>{{ i18n "cookiePolicy" }}</u></a>.</p>
<a style="font-size: 12px;" href="javascript:dismissPopup()">({{ i18n "dismissPopup" }})</a>
</div>
{{ end }}