Sign inFree trial
Support home / Integrations

Gatsby analytics

Fathom Analytics works great with Gatsby.js. There are two options for using Fathom with Gatsby:

  1. gatsby-plugin-fathom by Lars Graubner
  2. Fathom Analytics Gatsby Plugin by Benedicte Raae
  3. Use the instructions below:
  • In your terminal, navigate to your Gatsby project
  • Run cp .cache/default-html.js src/html.js
  • Add your embed code just before </head> in that file

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.

EU DPA declares Google Analytics illegal because it runs on US cloud providers. Fathom is a Canadian company, and all of your EU traffic never leaves German-owned servers.