diff --git a/articles/templates/articles/base.html b/articles/templates/articles/base.html
index 2a9ab06..2d0bd1e 100644
--- a/articles/templates/articles/base.html
+++ b/articles/templates/articles/base.html
@@ -9,6 +9,7 @@
{% block title %}Home | {% endblock %}{{ blog_title }} by {{ blog_author }}
+ {% include "articles/snippets/analytics_head.html" %}
{% include "articles/snippets/page_metadata.html" %}
{% compress css inline %}
diff --git a/articles/templates/articles/snippets/analytics.html b/articles/templates/articles/snippets/analytics.html
index 2b163b4..176bfa9 100644
--- a/articles/templates/articles/snippets/analytics.html
+++ b/articles/templates/articles/snippets/analytics.html
@@ -1,19 +1,21 @@
{% load static compress %}
-{% if plausible_domain is not None and not user.is_authenticated %}
-
-{% endif %}
-
-{% compress js inline %}
- {% if goatcounter_domain is not None and not user.is_authenticated %}
-
-
{% endif %}
-{% endcompress %}
+
+ {% compress js inline %}
+ {% if goatcounter_domain is not None %}
+
+
+ {% endif %}
+ {% endcompress %}
+{% endif %}
diff --git a/articles/templates/articles/snippets/analytics_head.html b/articles/templates/articles/snippets/analytics_head.html
new file mode 100644
index 0000000..e931159
--- /dev/null
+++ b/articles/templates/articles/snippets/analytics_head.html
@@ -0,0 +1,9 @@
+{% if not user.is_authenticated %}
+ {% if plausible_domain is not None %}
+
+ {% endif %}
+
+ {% if goatcounter_domain is not None %}
+
+ {% endif %}
+{% endif %}