Menu

How to Switch from Google Analytics to Fathom

📊
Google Analytics
Fathom Analytics
Fathom Analytics
Easy 20 minutes Updated 21 January 2026 Privacy Registry Team

Introduction

This guide will help you switch from Google Analytics to Fathom, a privacy-first analytics platform that respects visitor privacy while providing valuable insights. Fathom offers EU data residency and is fully GDPR compliant.

Why switch?

  • Google Analytics tracks users across websites
  • Creates detailed behavioral profiles
  • Legal issues in EU countries under GDPR
  • Requires intrusive cookie banners
  • Overwhelming complexity for most users

Why Fathom?

  • EU data isolation option available
  • No cookies required - GDPR compliant by design
  • Simple, beautiful dashboard
  • Fast and lightweight script
  • Accurate data without sampling
  • Excellent uptime and performance

Prerequisites

  • Access to your website’s code or CMS
  • Google Analytics account (for reference)
  • Fathom account (paid service with 7-day free trial)
  • About 20 minutes of time

Info: Fathom pricing starts at $14/month for up to 100k pageviews. Enterprise plans include EU data isolation.

Step 1: Create your Fathom account

  1. Visit usefathom.com and click “Start your free trial”
  2. Enter your email and create your account
  3. Verify your email address
  4. Add your first site
  5. Get your unique site ID and tracking script

Tip: Choose EU data isolation in settings if your audience is primarily European.

Step 2: Install the Fathom tracking script

Basic installation (HTML)

Add this to your site’s <head>:

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

WordPress installation

  1. Use the official Fathom Analytics plugin
  2. Or add the script via your theme’s header
  3. Enter your site ID in plugin settings

React/Next.js installation

// Using next/script
import Script from 'next/script'

<Script
  src="https://cdn.usefathom.com/script.js"
  data-site="YOURSITEID"
  defer
/>

Other platforms

Fathom provides detailed guides for Gatsby, Hugo, Webflow, Ghost, and many more at usefathom.com/docs.

  1. Log into your Fathom dashboard
  2. Go to Site Settings
  3. Enable “EU isolation” for GDPR compliance
  4. Your data will be processed only in EU data centers

Tip: EU isolation is included in all Fathom plans and recommended for European businesses.

Step 4: Verify tracking is working

  1. Deploy your website with the new script
  2. Visit your site in an incognito window
  3. Check your Fathom dashboard
  4. Confirm the pageview appears
  5. Test navigation to verify multiple pages track

Step 5: Set up events and goals

Track important actions beyond pageviews:

  1. Go to Events in your Fathom dashboard
  2. Create events like “Newsletter signup” or “Purchase”
  3. Add event tracking code to relevant buttons:
// Track a custom event
fathom.trackEvent('Newsletter Signup');

For more complex tracking:

<button onclick="fathom.trackEvent('Download PDF')">
  Download Guide
</button>

Step 6: Transition from Google Analytics

  1. Run both GA and Fathom in parallel for 2-4 weeks
  2. Compare metrics to understand differences
  3. Once satisfied, remove Google Analytics script
  4. Update your privacy policy
  5. Remove or simplify cookie consent if GA was the only reason

Tips & Gotchas

Warning: Fathom and Google Analytics count differently. Some variance is normal and expected.

  • No cookie banner needed: Fathom doesn’t use cookies, so you may not need consent for analytics
  • UTM parameters: Fathom tracks UTM parameters automatically
  • Referrer data: Some browsers block referrer data - this affects all analytics tools
  • Single-page apps: Use Fathom’s SPA mode for React, Vue, etc.
  • Excluded paths: Set up path exclusions for admin pages
  • API access: Export your data anytime via Fathom’s API

What’s Next?

After completing this guide:

  1. Configure events: Track conversions and key actions
  2. Set up email reports: Weekly or monthly summaries
  3. Update privacy policy: Reflect your new privacy-friendly analytics
  4. Add team members: Share dashboard access with colleagues
  5. Explore integrations: Connect with other tools via Fathom’s API