diff --git a/docs/analytics.md b/docs/analytics.md index 029503a1a..05be7716c 100644 --- a/docs/analytics.md +++ b/docs/analytics.md @@ -2,20 +2,21 @@ ## Supported Providers -*in alphabetic order* +_in alphabetic order_ -* [Application Insights](https://azure.com/) - [documentation](/docs/analytics/applicationinsights.md) -* [Baidu Analytics](https://tongji.baidu.com/) - [documentation](/docs/analytics/baidu.md) -* [Clicky](https://clicky.com/) - [documentation](/docs/analytics/clicky.md) -* [Cloudflare](https://www.cloudflare.com/analytics/) - [documentation](/docs/analytics/cloudflare.md) -* [Google Analytics](https://developers.google.com/analytics) - [documentation](/docs/analytics/googleanalytics.md) -* [Google Tag Manager](https://developers.google.com/tag-manager) - [documentation](/docs/analytics/googletagmanager.md) -* [Fathom Analytics](https://usefathom.com/) - [documentation](/docs/analytics/fathom.md) -* [Goat Counter](https://www.goatcounter.com/) - [documentation](/docs/analytics/goatcounter.md) -* [Matomo](https://matomo.org/) - [documentation](/docs/analytics/matomo.md) -* [Micro Analytics](https://microanalytics.io/) - [documentation](/docs/analytics/microanalytics.md) -* [Pirsch](https://pirsch.io/) - [documentation](/docs/analytics/pirsch.md) -* [Plausible Analytics](https://plausible.io/) - [documentation](/docs/analytics/plausible.md) -* [Umami](https://umami.is/) - [documentation](/docs/analytics/umami.md) -* [Vercel Analytics](https://vercel.com/analytics) - [documentation](/docs/analytics/vercel.md) -* [Wide Angle Analytics](https://wideangle.co/) - [documentation](/docs/analytics/wideangle.md) \ No newline at end of file +- [Application Insights](https://azure.com/) - [documentation](/docs/analytics/applicationinsights.md) +- [Baidu Analytics](https://tongji.baidu.com/) - [documentation](/docs/analytics/baidu.md) +- [Clicky](https://clicky.com/) - [documentation](/docs/analytics/clicky.md) +- [Cloudflare](https://www.cloudflare.com/analytics/) - [documentation](/docs/analytics/cloudflare.md) +- [Google Analytics](https://developers.google.com/analytics) - [documentation](/docs/analytics/googleanalytics.md) +- [Google Tag Manager](https://developers.google.com/tag-manager) - [documentation](/docs/analytics/googletagmanager.md) +- [Fathom Analytics](https://usefathom.com/) - [documentation](/docs/analytics/fathom.md) +- [Goat Counter](https://www.goatcounter.com/) - [documentation](/docs/analytics/goatcounter.md) +- [Matomo](https://matomo.org/) - [documentation](/docs/analytics/matomo.md) +- [Micro Analytics](https://microanalytics.io/) - [documentation](/docs/analytics/microanalytics.md) +- [Pirsch](https://pirsch.io/) - [documentation](/docs/analytics/pirsch.md) +- [Plausible Analytics](https://plausible.io/) - [documentation](/docs/analytics/plausible.md) +- [Umami](https://umami.is/) - [documentation](/docs/analytics/umami.md) +- [Vercel Analytics](https://vercel.com/analytics) - [documentation](/docs/analytics/vercel.md) +- [Wide Angle Analytics](https://wideangle.co/) - [documentation](/docs/analytics/wideangle.md) +- [One Dollars Stats](https://onedollarstats.com/analytics) - [documentation](/docs/analytics/onedollarstats.md) diff --git a/docs/analytics/onedollarstats.md b/docs/analytics/onedollarstats.md new file mode 100644 index 000000000..2a63d01fc --- /dev/null +++ b/docs/analytics/onedollarstats.md @@ -0,0 +1,6 @@ +# One Dollars Stats + +```toml +[params.onedollarstats] + id = "data-site-id" +``` diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index eae936fc5..0b5c51b12 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -102,6 +102,10 @@ customRemoteJS = [] # siteID = "ABCDE" # scriptURL = "analytics.REGION.umami.is/SCRIPTNAME.js" +# If you want to use One Dollars Stats(https://onedollarstats.com/analytics) for analytics, add this section +# [params.onedollarstats] +# id = "data-site-id" + # If you want to implement a Content-Security-Policy, add this section # [params.csp] # childsrc = ["'self'"] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3b06b31de..5ced05cb2 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -108,6 +108,10 @@ {{- partial "analytics/microanalyticsio" . -}} {{ end }} + {{ if and .Site.Params.onedollarstats .Site.Params.onedollarstats.id }} + {{- partial "analytics/onedollarstats" . -}} + {{ end }} + {{ if .Site.Params.vercelAnalytics}} {{- partial "analytics/vercel" . -}} {{ end }} diff --git a/layouts/partials/analytics/onedollarstats.html b/layouts/partials/analytics/onedollarstats.html new file mode 100644 index 000000000..a5b62132b --- /dev/null +++ b/layouts/partials/analytics/onedollarstats.html @@ -0,0 +1,5 @@ +