저는 Fathom Analytics를 사용하고 있으며, 사이트 추적을 위한 JS 스크립트를 임베드하려고 하고 있습니다. 스크립트는 다음과 같습니다:
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
<script>
(function(f, a, t, h, o, m){
a[h]=a[h]||function(){
(a[h].q=a[h].q||[]).push(arguments)
};
o=f.createElement('script'),
m=f.getElementsByTagName('script')[0];
o.async=1; o.src=t; o.id='fathom-script';
m.parentNode.insertBefore(o,m)
})(document, window, '//fathom.example.org/tracker.js', 'fathom');
fathom('set', 'siteId', 'ABCDEF');
fathom('trackPageview');
</script>
<!-- / Fathom -->
이 코드를 Customize > Theme > Custom CSS/HTML 설정을 통해 <head> 섹션에 추가하고 있습니다.
하지만 사이트를 로드할 때 Fathom의 tracker.js 스크립트 가져오기가 실패합니다:
그리고 콘솔에는 다른 오류들이 표시됩니다:
Uncaught (in promise) no-response: no-response :: [{"url":"https://fathom.example.org/tracker.js"}]
at a.makeRequest (https://discuss.example.org/javascripts/workbox/workbox-strategies.prod.js:1:2145)
Fathom이 해당 JS 가져오기를 방해하는 것 같습니다. 어떻게 해야 이 문제를 해결할 수 있을까요?
현재 2.6.0.beta1 버전을 사용 중입니다.
