Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fe2cb13aff | |||
| 7187f7bb2a |
@@ -1,6 +1,6 @@
|
|||||||
(function () {
|
(function () {
|
||||||
function trackVisit() {
|
function trackVisit() {
|
||||||
var banner = document.getElementById('cookie_banner');
|
var banner = document.getElementById('cookie-banner');
|
||||||
if (!banner) return;
|
if (!banner) return;
|
||||||
var matomoUrl = banner.dataset.matomoUrl;
|
var matomoUrl = banner.dataset.matomoUrl;
|
||||||
var siteId = banner.dataset.matomoSiteId;
|
var siteId = banner.dataset.matomoSiteId;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="cookie-banner" style="display:none" role="dialog"
|
<div id="cookie-banner" style="display:none" role="dialog"
|
||||||
aria-label="Cookie consent" aria-live="polite"
|
aria-label="Cookie consent" aria-live="polite"
|
||||||
data-matomo-url="{{ .Site.Params.hugo_cookie_consent.matomo_host }}"
|
data-matomo-url="{{ .Site.Params.hugo_cookie_consent.matomo_host }}"
|
||||||
data-matomo-site-id="{{ .Site.Params.hugo_cookie_consent_matomo_site_id }}" >
|
data-matomo-site-id="{{ .Site.Params.hugo_cookie_consent.matomo_site_id }}" >
|
||||||
<p>
|
<p>
|
||||||
{{ i18n "site_wants_cookie" }}
|
{{ i18n "site_wants_cookie" }}
|
||||||
<a href="{{ .Site.Params.hugo_cookie_consent.privacy_policy_url }}">
|
<a href="{{ .Site.Params.hugo_cookie_consent.privacy_policy_url }}">
|
||||||
|
|||||||
@@ -4,3 +4,4 @@
|
|||||||
{{- $js := resources.Get "js/hugo_cookie_consent/tracker_code.js" | minify -}}
|
{{- $js := resources.Get "js/hugo_cookie_consent/tracker_code.js" | minify -}}
|
||||||
<script src="{{ $js.RelPermalink }}" defer></script>
|
<script src="{{ $js.RelPermalink }}" defer></script>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user