diff --git a/config/_default/params.toml b/config/_default/params.toml index 810442ec..b1f6ace5 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -129,6 +129,10 @@ disableTextInHeader = false # site = "ABC12345" # domain = "llama.yoursite.com" +[umamiAnalytics] + # websiteid = "ABC12345" + # domain = "llama.yoursite.com" + [buymeacoffee] # identifier = "" # globalWidget = true diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index a0148d71..aa3482ed 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -128,6 +128,10 @@ smartTOCHideUnfocusedChildren = false # site = "ABC12345" # domain = "llama.yoursite.com" +[umamiAnalytics] + # websiteid = "ABC12345" + # domain = "llama.yoursite.com" + [buymeacoffee] identifier = "nunocoracao" globalWidget = true diff --git a/layouts/partials/analytics/main.html b/layouts/partials/analytics/main.html index c3b4c57d..5db13e58 100644 --- a/layouts/partials/analytics/main.html +++ b/layouts/partials/analytics/main.html @@ -3,4 +3,7 @@ {{ end }} {{ with site.Config.Services.GoogleAnalytics.ID }} {{ partial "analytics/ga.html" }} +{{ end }} +{{ with site.Params.umamiAnalytics.websiteid }} +{{ partial "analytics/umami.html" }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/analytics/umami.html b/layouts/partials/analytics/umami.html new file mode 100644 index 00000000..5b5d6989 --- /dev/null +++ b/layouts/partials/analytics/umami.html @@ -0,0 +1,23 @@ +{{ if isset site.Params.umamiAnalytics "domain" }} + + +{{ else }} + + +{{ end }} \ No newline at end of file