Aggiunta Matomo
This commit is contained in:
parent
945579bbf3
commit
b36cf63d49
@ -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"
|
||||
|
@ -14,7 +14,7 @@ Dati Personali:
|
||||
|
||||
#### 🗄️ Statistiche
|
||||
|
||||
**🇪🇺 🇩🇪 GoatCounter**
|
||||
**🇪🇺 🇮🇹 Associazione Italian Linux Society**
|
||||
|
||||
Dati Personali:
|
||||
- indirizzo IP temporaneamente, poi convertito in hash e rimosso
|
||||
|
@ -20,5 +20,7 @@
|
||||
{{ partialCached "head/hugo-generator.html" . }}
|
||||
|
||||
{{ partial "head/extensions.html" . }}
|
||||
|
||||
{{ partial "partials/matomo.html" . }}
|
||||
</head>
|
||||
|
17
layouts/partials/matomo.html
Normal file
17
layouts/partials/matomo.html
Normal 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 -->
|
||||
|
Reference in New Issue
Block a user