Add clicky.com analytics
This commit is contained in:
@@ -176,6 +176,8 @@ Optional site parameters:
|
|||||||
```yaml
|
```yaml
|
||||||
paige:
|
paige:
|
||||||
analytics:
|
analytics:
|
||||||
|
clicky: # clicky.com
|
||||||
|
account_id: "123456"
|
||||||
fathom: # usefathom.com
|
fathom: # usefathom.com
|
||||||
account_id: "123456"
|
account_id: "123456"
|
||||||
matomo: # matomo.org
|
matomo: # matomo.org
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
paige_analytics_noscript:
|
||||||
|
other: JavaScript is required for analytics.
|
||||||
|
|
||||||
paige_comments_noscript:
|
paige_comments_noscript:
|
||||||
other: JavaScript is required for comments.
|
other: JavaScript is required for comments.
|
||||||
|
|
||||||
|
@@ -10,8 +10,23 @@
|
|||||||
{{ if .Site.GoogleAnalytics }}
|
{{ if .Site.GoogleAnalytics }}
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ with .Site.Params.paige.analytics.fathom }}
|
||||||
<script data-site="{{ .account_id }}" defer src="https://cdn.usefathom.com/script.js"></script>
|
<script data-site="{{ .account_id }}" defer src="https://cdn.usefathom.com/script.js"></script>
|
||||||
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.paige.analytics.matomo }}
|
{{ with .Site.Params.paige.analytics.matomo }}
|
||||||
<script type="text/javascript">
|
<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);
|
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.paige.analytics.plausible }}
|
{{ with .Site.Params.paige.analytics.plausible }}
|
||||||
<script data-domain="{{ .account_id }}" defer src="https://plausible.io/js/script.js"></script>
|
<script data-domain="{{ .account_id }}" defer src="https://plausible.io/js/script.js"></script>
|
||||||
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.paige.analytics.yandex }}
|
{{ with .Site.Params.paige.analytics.yandex }}
|
||||||
<script>
|
<script>
|
||||||
@@ -36,4 +53,5 @@ _paq.push(['enableLinkTracking']);
|
|||||||
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
||||||
ym("{{ .account_id }}", "init", {});
|
ym("{{ .account_id }}", "init", {});
|
||||||
</script>
|
</script>
|
||||||
|
<noscript>{{ i18n "paige_analytics_noscript" }}</noscript>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user