From 29caab09da12a461c41f400a702679a8d516697a Mon Sep 17 00:00:00 2001 From: Matei-Marius Micu Date: Thu, 4 Mar 2021 21:52:01 +0200 Subject: Add Hotjar support --- README.md | 5 ++++- exampleSite/config.toml | 2 +- layouts/partials/analytics/hotjar.html | 10 ++++++++++ layouts/partials/footer.html | 4 ++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/analytics/hotjar.html diff --git a/README.md b/README.md index 6e26e05..ab807b9 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,9 @@ rootURL = "//matomo.example.com/" [params.fathomAnalytics] rootURL = "//fathom.example.com/" +[params.hotjarAnalytics] +hjid = 1 + [taxonomies] tag ="tags" @@ -171,7 +174,7 @@ on demand loading: ```toml [params.features] -disqusOnDemand = true +disqusOnDemand = true ``` ## Single Page Configuration diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 178b63e..cfbe5e6 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -61,4 +61,4 @@ rootURL = "//fathom.example.com/" tag ="tags" [blackfriday] -hrefTargetBlank = true \ No newline at end of file +hrefTargetBlank = true diff --git a/layouts/partials/analytics/hotjar.html b/layouts/partials/analytics/hotjar.html new file mode 100644 index 0000000..61e103c --- /dev/null +++ b/layouts/partials/analytics/hotjar.html @@ -0,0 +1,10 @@ + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 707adf1..9772654 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -15,5 +15,9 @@ {{ if .Site.Params.fathomAnalytics }} {{- partial "analytics/fathom" . -}} {{ end }} + +{{ if .Site.Params.hotjarAnalytics}} +{{- partial "analytics/hotjar" . -}} +{{ end }} -- cgit v1.2.3