mirror of https://github.com/jpanther/congo.git
Added support for Umami Analytics. See #829 for further references.
parent
4acfb7b76a
commit
4d5643f861
|
@ -28,7 +28,7 @@ Congo is designed to be a powerful, lightweight theme for [Hugo](https://gohugo.
|
||||||
- Heading anchors, Tables of Contents, Code copy, Buttons, Badges and more
|
- Heading anchors, Tables of Contents, Code copy, Buttons, Badges and more
|
||||||
- HTML and Emoji support in articles 🎉
|
- HTML and Emoji support in articles 🎉
|
||||||
- SEO friendly with links for sharing to social media
|
- SEO friendly with links for sharing to social media
|
||||||
- Fathom Analytics and Google Analytics support
|
- Fathom Analytics, Plausible Analytics, Umami Analytics and Google Analytics support
|
||||||
- RSS feeds, Favicons and comments support
|
- RSS feeds, Favicons and comments support
|
||||||
- Advanced customisation using simple Tailwind colour definitions and styles
|
- Advanced customisation using simple Tailwind colour definitions and styles
|
||||||
- Optimised for performance and accessibility with perfect Lighthouse scores
|
- Optimised for performance and accessibility with perfect Lighthouse scores
|
||||||
|
|
|
@ -71,6 +71,10 @@ fingerprintAlgorithm = "sha256"
|
||||||
[fathomAnalytics]
|
[fathomAnalytics]
|
||||||
# site = "ABC12345"
|
# site = "ABC12345"
|
||||||
|
|
||||||
|
#[umamiAnalytics]
|
||||||
|
# site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
|
# region = "eu" # Can be either "eu" or "us"
|
||||||
|
|
||||||
[verification]
|
[verification]
|
||||||
# google = ""
|
# google = ""
|
||||||
# bing = ""
|
# bing = ""
|
||||||
|
|
|
@ -10,5 +10,15 @@
|
||||||
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
|
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
|
||||||
></script>
|
></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with site.Params.umamiAnalytics }}
|
||||||
|
{{- $region := "eu" }}
|
||||||
|
{{- if isset . "region" }}
|
||||||
|
{{- $region = .region }}
|
||||||
|
{{- end }}
|
||||||
|
<script defer
|
||||||
|
src="https://{{ $region }}.umami.is/script.js"
|
||||||
|
data-website-id="{{ .site }}">
|
||||||
|
</script>
|
||||||
|
{{ end }}
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue