diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html new file mode 100644 index 0000000..133e13c --- /dev/null +++ b/layouts/partials/analytics.html @@ -0,0 +1,25 @@ +{{ if hugo.IsProduction }} + {{ with .Site.Params.fathomAnalytics.site }} + + {{ end }} + {{ with site.Params.plausibleAnalytics.domain }} + + {{ end }} + {{ with site.Params.umamiAnalytics }} + {{- $region := "eu" }} + {{- if isset . "region" }} + {{- $region = .region }} + {{- end }} + + {{ end }} + {{ template "_internal/google_analytics.html" . }} +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 02c2240..c31f2b0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,5 +1,42 @@