How to Add Fathom Analytics to Your Website
Fathom works from a single script tag that carries your site ID. Add it to the header of your site, or use Fathom's WordPress plugin, then visit the site and watch the Realtime count on your dashboard. Fathom uses no cookies, so its analytics need no consent banner.
| Item | Detail |
|---|---|
| Free trial | 7 days, card required, not charged until it ends |
| Cheapest plan | $15 a month |
| Pageviews on that plan | Up to 100,000 a month, shared across sites |
| Sites included | 50 |
Updated
Fathom suits people who run several small sites: the entry plan covers up to 50 sites under one pageview allowance, and the dashboard fits on one screen. It is a paid product from day one, with no permanent free tier.
Add Fathom on We.Inc, WordPress, Wix, Squarespace or plain HTML
We.Inc
- Open "..." in the builder, then Add-ons.
- Choose Fathom Analytics and paste your site ID.
- Flip it on.
- Publish and look at Realtime in Fathom.
WordPress
- Head to Plugins, Add Plugin and search Fathom Analytics.
- Install and activate Fathom's plugin.
- Enter your site ID in its settings and save.
A paid WordPress.com plan is needed to add it there.
Wix
- Click Settings, then Custom Code, then + Add Custom Code.
- Paste the Fathom script tag, apply to All pages in Head, and save.
Wix only runs this on a published site with a connected domain.
Squarespace
- Go to Code Injection.
- Paste the script tag into Header and save.
Needs the Core, Plus or Advanced plan.
Plain HTML
- Add the script tag in <head> on every page.
- Deploy and check Realtime.
Shape of the Fathom embed
Copy the real tag from your dashboard; the only site-specific part is the data-site value.
<script src="https://cdn.usefathom.com/script.js" data-site="YOUR_SITE_ID" defer></script>Sources
- Fathom docs, install Fathom: https://usefathom.com/docs/start/install (checked October 28, 2026, used for the Fathom steps)
- Fathom pricing: https://usefathom.com/pricing (checked October 28, 2026, used for the Fathom steps)
- Wix Help Center, embedding custom code: https://support.wix.com/en/article/embedding-custom-code-on-your-site (checked October 28, 2026, used for the Fathom steps)
- Squarespace Help Center, using code injection: https://support.squarespace.com/hc/en-us/articles/205815908-Using-code-injection (checked October 28, 2026, used for the Fathom steps)
Cookieless, but not consent-free for everything
Fathom's analytics sets no cookies, which is why it says you do not need a banner for it. That covers Fathom only. Ad pixels, chat widgets and video embeds can still set cookies that need consent; /guides/how-to-add-cookie-banner-to-website explains how to handle them.
How it works
- Create a Fathom account and add your site to get its site ID.
- Copy the embed code.
- Install it in the header of every page, or connect through a plugin or integration.
- Open the site and check the Realtime number at the top of the dashboard.
Tips
- Use one Fathom account for all your sites; the pageview allowance is pooled, so quiet sites cost nothing extra.
- Create events in Fathom for form success pages to see conversions next to traffic.
- Check Realtime from a phone on mobile data to rule out your own network's blockers.
Frequently asked questions
Does Fathom have a free plan?
No permanent one. There is a 7-day trial that needs a card, then plans start at $15 a month.
Where do I find my Fathom site ID?
It is in the embed code for each site in your Fathom dashboard, in the data-site attribute.
Fathom or Plausible?
Both are cookieless, simple dashboards. Plausible has an open-source self-hosted edition and EU-only hosting; Fathom pools one allowance across many sites. Try each on the same site for a week.
Related: How to add Plausible Analytics, How to set up Google Analytics, Cookie consent banner examples, Privacy policy generator.
Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.
More in Guides
- How to Add Google AdSense to Your Website
- How to Add Google Reviews to Your Website
- How to Add Google Tag Manager to Your Website
- How to Add Google Translate to Your Website
- How to Add Hotjar to Your Website
- How to Add HubSpot Chat to Your Website
- How to Add an Image Gallery to Your Website
- How to Add Intercom to Your Website
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App