Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ribice/kiss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/analytics/hotjar.html10
-rw-r--r--layouts/partials/footer.html4
2 files changed, 14 insertions, 0 deletions
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 @@
+<script>
+ (function(h,o,t,j,a,r){
+ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
+ h._hjSettings={hjid:'{{ .Site.Params.hotjarAnalytics.hjid }}',hjsv:6};
+ a=o.getElementsByTagName('head')[0];
+ r=o.createElement('script');r.async=1;
+ r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
+ a.appendChild(r);
+ })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
+</script>
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 }}
</body>
</html>