Aggiunta Matomo

This commit is contained in:
loviuz 2022-12-29 00:03:14 +01:00
parent 945579bbf3
commit b36cf63d49
4 changed files with 25 additions and 2 deletions

View File

@ -35,6 +35,10 @@ pygmentscodefencesguesssyntax = true
telegram_url = "https://t.me/openit_este"
[params.matomo]
siteurl = "//stats.linux.it/"
siteid = 5
[params.donations]
liberapay_username = "loviuz"
stripe_donation_link = "https://donate.stripe.com/bIY14hdxefdxdoceUU"
@ -48,7 +52,7 @@ whatsapp = true
email = true
[params.goatCounter]
code = "openiteste"
code = ""
[taxonomies]
category = "categorie"

View File

@ -14,7 +14,7 @@ Dati Personali:
#### 🗄️ Statistiche
**🇪🇺 🇩🇪 GoatCounter**
**🇪🇺 🇮🇹 Associazione Italian Linux Society**
Dati Personali:
- indirizzo IP temporaneamente, poi convertito in hash e rimosso

View File

@ -20,5 +20,7 @@
{{ partialCached "head/hugo-generator.html" . }}
{{ partial "head/extensions.html" . }}
{{ partial "partials/matomo.html" . }}
</head>

View File

@ -0,0 +1,17 @@
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['disableCookies']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="{{ .Site.Params.matomo.siteurl }}";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{ .Site.Params.matomo.siteid }}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->