diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html
index 5a678e96..c73fefbf 100644
--- a/layouts/partials/analytics.html
+++ b/layouts/partials/analytics.html
@@ -1,6 +1,6 @@
{{ with site.Params.fathomAnalytics.site }}
-{{ if isset $.Site.Params.fathomanalytics "domain" }}
-
+{{ if isset $.Params.fathomAnalytics "domain" }}
+
{{ else }}
{{ end }}