Support home / Integrations

Inertia.js

Fathom Analytics works great with Inertia.js. We actually use Inertia.js to power the Fathom dashboard. It's super simple.

Using Fathom Analytics with Inertia.js requires no extra configuration. If you have some sort of automatic build set-up, you'll need to find a way to get the script onto the page. Otherwise, the following code, with your own data-site value, added to your layout page (e.g. in Laravel that's app-inertia.blade.php) will do the trick.

<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?