Fathom Analytics Fathom Analytics

Installing our tracking/embed code snippet

Fathom Analytics works great for business and website owners who aren’t technical. All you need a single line of code in your header.

Standard Installation

You can grab your site-specific code by going to Settings, then Sites and then click on the Site ID.

<script src="https://cdn.usefathom.com/script.js" site="ABCDEFG" defer></script>

If you use a custom domain, the URL in our code would change from our URL to your generated custom domain, like so:

<script src="https://llama.yoursite.com/script.js" site="ABCDEFG" defer></script>

CMS / Frontend Frameworks

We have instructions for the following tools in the "Install Site" area.

Past our standard configuration above, which works for most users, we also offer a lot of customizations for developers, people who use frameworks and plugins for folks who use content management systems.

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

← Return to support