diff --git a/README.md b/README.md index 029ff789..b131e438 100644 --- a/README.md +++ b/README.md @@ -177,8 +177,13 @@ paige_bootstrap_icons: "/my-assets/my-bootstrap-icons.css" # Use local Bootstrap paige_bootstrap_scripts: "/my-assets/my-bootstrap.bundle.min.js" # Use local Bootstrap scripts paige_bootstrap_styles: "/my-assets/my-bootstrap.min.css" # Use local Bootstrap styles paige_date_format: "2006 January 2" # Hugo date format for page dates +paige_fathom_id: "123456" # usefathom.com account ID paige_hide_theme_comment: true # Don't put a link to this project in a code comment paige_hide_theme_link: true # Don't put a link to this project in the footer +paige_matomo_id: "123456" # matomo.org account ID +paige_matomo_url: "https://example.com/123456" # matomo.org account URL +paige_plausible_id: "123456" # plausible.io account ID +paige_yandex_id: "123456" # metrica.yandex.com account ID ``` If you set either `paige_hide_theme_comment` or `paige_hide_theme_link`, please credit this project in a post to help others find it. diff --git a/layouts/partials/paige-script.html b/layouts/partials/paige-script.html index ffc5fc44..d7ac1453 100644 --- a/layouts/partials/paige-script.html +++ b/layouts/partials/paige-script.html @@ -10,3 +10,30 @@ {{ if .Site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }} {{ end }} +{{ with .Site.Params.paige_fathom_id }} + +{{ end }} +{{ if and .Site.Params.paige_matomo_id .Site.Params.paige_matomo_url }} + +{{ end }} +{{ with .Site.Params.paige_plausible_id }} + +{{ end }} +{{ with .Site.Params.paige_yandex_id }} + +{{ end }}