|
|
|
@ -10,8 +10,23 @@
|
|
|
|
|
{{ if .Site.GoogleAnalytics }}
|
|
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ with .Site.Params.paige.analytics.clicky }}
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var clicky_site_ids = clicky_site_ids || [];
|
|
|
|
|
clicky_site_ids.push({{ .account_id }});
|
|
|
|
|
(function() {
|
|
|
|
|
var s = document.createElement('script');
|
|
|
|
|
s.type = 'text/javascript';
|
|
|
|
|
s.async = true;
|
|
|
|
|
s.src = '//static.getclicky.com/js';
|
|
|
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
|
|
|
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ with .Site.Params.paige.analytics.fathom }}
|
|
|
|
|
<script data-site="{{ .account_id }}" defer src="https://cdn.usefathom.com/script.js"></script>
|
|
|
|
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ with .Site.Params.paige.analytics.matomo }}
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
@ -26,9 +41,11 @@ _paq.push(['enableLinkTracking']);
|
|
|
|
|
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
|
|
|
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ with .Site.Params.paige.analytics.plausible }}
|
|
|
|
|
<script data-domain="{{ .account_id }}" defer src="https://plausible.io/js/script.js"></script>
|
|
|
|
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ with .Site.Params.paige.analytics.yandex }}
|
|
|
|
|
<script>
|
|
|
|
@ -36,4 +53,5 @@ _paq.push(['enableLinkTracking']);
|
|
|
|
|
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
|
|
|
|
ym("{{ .account_id }}", "init", {});
|
|
|
|
|
</script>
|
|
|
|
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
|
|
|
|
{{ end }}
|
|
|
|
|