From fe71cd9a130b8037a3baa3657fa170720539a9e5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 4 Oct 2024 21:29:07 +0100 Subject: [PATCH] Add Hotjar code --- app/config/sculpin_site.yml | 3 +++ app/config/sculpin_site_prod.yml | 3 +++ source/_layouts/base.html.twig | 16 ++++++++++++++-- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index a1d070cb..49a59e1c 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -24,6 +24,9 @@ ctas: pair: | Need help or want another pair of eyes on your code? Book a 1-on-1 consulting call or an online pair programming session with a 100% money-back guarantee., +hotjar: + id: ~ + mastodon: username: opdavies url: https://mastodon.social/@%mastodon.username% diff --git a/app/config/sculpin_site_prod.yml b/app/config/sculpin_site_prod.yml index 16aa94f0..69e333ac 100644 --- a/app/config/sculpin_site_prod.yml +++ b/app/config/sculpin_site_prod.yml @@ -2,6 +2,9 @@ imports: - sculpin_site.yml +hotjar: + id: 5159836 + plausible: domain: oliverdavies.uk diff --git a/source/_layouts/base.html.twig b/source/_layouts/base.html.twig index ab76f096..4cc4212e 100644 --- a/source/_layouts/base.html.twig +++ b/source/_layouts/base.html.twig @@ -4,8 +4,6 @@ - - @@ -43,6 +41,20 @@ {% endblock %} {% block styles %}{% endblock %} + + {% if site.hotjar.id %} + + + {% endif %} {% block body %}{% endblock %}