Skip to content

Commit

Permalink
Add missing host to tracker script generation
Browse files Browse the repository at this point in the history
Fixes #335

Signed-off-by: Lukas Kämmerling <[email protected]>
  • Loading branch information
LKaemmerling committed May 2, 2022
1 parent aee9431 commit b60bf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/js/components/SiteSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
</script>
Expand Down

0 comments on commit b60bf03

Please sign in to comment.