diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1f1039d2..ddf56515 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
### Fixed
- Missing dark style for group subheadings on article listings
+- Fathom Analytics script included twice when using custom domain
## [1.2.0] - 2021-08-22
### Added
diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html
index 0787f40b..5f92a104 100644
--- a/layouts/partials/analytics.html
+++ b/layouts/partials/analytics.html
@@ -2,8 +2,9 @@
{{ with .Site.Params.fathomAnalytics.site }}
{{ if isset $.Site.Params.fathomanalytics "domain" }}
+ {{ else }}
+
{{ end }}
-
{{ end }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}