Skip to content

Commit

Permalink
Merge pull request #344 from usefathom/fix-autogenerated-code-port
Browse files Browse the repository at this point in the history
Add missing host/port to tracker script generation
  • Loading branch information
LKaemmerling authored May 2, 2022
2 parents aee9431 + b60bf03 commit e434837
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 e434837

Please sign in to comment.