Skip to main content
Support home / Integrations

Integrating embed code with other frontend frameworks (SPAs)

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.


If you still have questions or require help with anything, please reach out to us and we'll happily get things sorted out for you.


Can't find what you're looking for?