Custom implementation of Fathom script used to self-host privacy-conscious tracker.
Why do I self-host tracker? I am uncomfortable allowing any third-party (including trusted ones such as Fathom) into my JavaScript environments which could be used as a backdoor.
This projects solves two problems…
First, code is deobfuscated so one can audit how it works.
Second, it adds a data-domain
attribute so one can set custom domain which, in reference implementation, is set to hostname of script.
<script
src="script.min.js"
data-domain="twenty-graceful.sunknudsen.com"
data-site="JNIACVCL"
…
></script>