From b60bf0359fbd9c2663ec2b95efdad2942deb67dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Mon, 2 May 2022 20:24:47 +0200 Subject: [PATCH] Add missing host to tracker script generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #335 Signed-off-by: Lukas Kämmerling --- assets/src/js/components/SiteSettings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/src/js/components/SiteSettings.js b/assets/src/js/components/SiteSettings.js index 943fe789..e83d1ff9 100644 --- a/assets/src/js/components/SiteSettings.js +++ b/assets/src/js/components/SiteSettings.js @@ -127,7 +127,7 @@ class SiteSettings extends Component { m=f.getElementsByTagName('script')[0]; o.async=1; o.src=t; o.id='fathom-script'; m.parentNode.insertBefore(o,m) -})(document, window, '//${document.domain}/tracker.js', 'fathom'); +})(document, window, '//${location.host}/tracker.js', 'fathom'); fathom('set', 'siteId', '${props.site.trackingId}'); fathom('trackPageview');