Fathom Analytics works well with Next.js with minimal configuration. A huge thank you to Derrick Reimer, founder of SavvyCal for creating the incredible fathom-client package.

If you’re using Next.js 13+ App Router

Please see: https://github.com/derrickreimer/fathom-client#using-the-experimental-app-directory-v13 And: https://github.com/derrickreimer/fathom-client/issues/38

If you’re using Next.js 12 (or below) Pages Directory

Please see: https://github.com/derrickreimer/fathom-client#using-pages-directory-v12-and-older

Further customization

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