No point in printing the privacy if Matomo isn't enabled
This commit is contained in:
parent
20a4458c0a
commit
3dc6b8c0cd
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
{{ if and (isset .Site.Params "matomo") (eq .Site.Params.matomo.enable true) }}
|
||||
<script type="text/javascript">
|
||||
window.addEventListener("load", function() {
|
||||
updateCookieConsent();
|
||||
|
@ -15,4 +16,5 @@
|
|||
<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>
|
||||
></iframe>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue