Out of the box, our default tracking code should work great. If you’re using another frontend framework, ultimately you just need to find a way to get the HTML into it, and you’ll be ready to go. We monitor pushstate, popstate etc., and we’ll track the first page load automatically.
<script type="text/plain" class="language-js"><script src="https://cdn.usefathom.com/script.js"
data-spa="auto"
data-site="ABCDEFG"
defer>&lt;/script></script>

Further customization

To learn about all the options we offer, read our advanced documentation here.