Fathom Analytics for Privacy-First Founders
Step-by-step guide to setting up Fathom Analytics. Privacy-compliant tracking for founders who ship. No cookies, GDPR-ready, fast.
The Privacy Problem Nobody Talks About
You shipped. Your product works. Users are signing up. Then you realize: you have no idea what they're doing on your site.
Google Analytics is the obvious choice. It's free. It's everywhere. But it's also tracking every click, every scroll, every keystroke—and bundling that data into a profile that follows your users across the web. If you're serious about building in public, you probably care about this. Your users definitely do.
The brutal truth: most founders use analytics tools that violate the privacy expectations of their audience. GDPR.info provides the complete regulatory framework that governs how you can collect and process user data in Europe and increasingly worldwide. The California Consumer Privacy Act imposes strict requirements on how you handle user data if your customers are in California. You're exposed.
There's a better way. Fathom Analytics is built for founders who want to understand their users without invading their privacy. No cookies. No tracking across sites. No profiling. Just clean, simple analytics that work.
This guide walks you through setting up Fathom Analytics from scratch, configuring it for your specific needs, and using it to make better decisions about your product. You'll have a privacy-compliant analytics foundation in under 30 minutes.
Prerequisites: What You Need Before You Start
Before you dive into Fathom setup, make sure you have these in place:
Access and Accounts
- A Fathom Analytics account (you can create one free at usefathom.com)
- Admin access to your website's code or your hosting platform (Vercel, Netlify, WordPress, Shopify, etc.)
- A text editor or IDE if you're adding code manually
- Your website's domain name and any subdomains you want to track
Technical Knowledge You don't need to be a developer, but you should be comfortable:
- Adding a single line of code to your website's header
- Accessing your hosting dashboard or CMS admin panel
- Understanding basic HTML structure (or knowing someone who does)
Planning
- A list of key pages or user flows you want to track
- Goals you want to measure (signups, downloads, purchases, etc.)
- Any specific compliance requirements for your audience (GDPR, CCPA, etc.)
If you're already running Google Analytics and want to migrate, you don't need to remove it immediately. You can run both in parallel for a few weeks to compare data.
Step 1: Create Your Fathom Account and Add Your Site
Start here. This takes five minutes.
Navigate to Fathom Analytics
Go to usefathom.com and click the "Sign Up" button. You'll see options to create a free account or start a paid plan. The free tier gives you 100,000 pageviews per month—plenty for most indie projects and early-stage startups.
Enter Your Email and Create a Password
Use an email address you check regularly. You'll get setup emails and monthly reports here. Make your password strong—this is your analytics data.
Verify Your Email
Fathom will send you a verification link. Click it. You're now in the dashboard.
Add Your First Site
Click "Add Site" or "New Site" in your dashboard. You'll see a form asking for:
- Site Name: Use something you'll recognize (e.g., "My Product" or "myproduct.com")
- Site Domain: Enter your primary domain (e.g.,
myproduct.comwithouthttps://) - Timezone: Select your timezone. Fathom uses this for daily reports and real-time data.
Click "Create Site." Fathom will generate a unique tracking code for this site. Copy it. You'll need it in the next step.
Understanding Your Tracking Code
Your tracking code looks like this:
<script src="https://cdn.usefathom.com/script.js" data-site="XXXXX" defer></script>
The XXXXX is your unique site ID. This is what tells Fathom which analytics data belongs to which site. Keep it private—anyone with this code can add tracking to your site.
Step 2: Install the Tracking Code on Your Website
Now you need to add Fathom's tracking script to your website. The method depends on your platform.
For Static HTML or Custom Code
If you built your site with plain HTML or a custom framework, add the Fathom script to the <head> section of your main HTML file (or template):
<!DOCTYPE html>
<html>
<head>
<title>Your Site Title</title>
<script src="https://cdn.usefathom.com/script.js" data-site="YOUR_SITE_ID" defer></script>
</head>
<body>
<!-- Your site content -->
</body>
</html>
Replace YOUR_SITE_ID with the actual ID from your Fathom dashboard. The defer attribute tells the browser to load the script asynchronously—it won't slow down your page.
For WordPress
Fathom has a native WordPress plugin. Install it:
- Go to your WordPress admin dashboard
- Navigate to Plugins > Add New
- Search for "Fathom Analytics"
- Click Install Now on the official Fathom plugin
- Click Activate
- Go to Settings > Fathom Analytics
- Paste your site ID into the settings field
- Save changes
WordPress will now automatically add the tracking code to every page on your site.
For Next.js or React
If you're using Next.js, install the Fathom package:
npm install fathom-client
Then add this to your pages/_app.js or root layout:
import { useEffect } from 'react';
import * as Fathom from 'fathom-client';
export default function App({ Component, pageProps }) {
useEffect(() => {
Fathom.load('YOUR_SITE_ID', {
includedDomains: ['myproduct.com'],
});
}, []);
return <Component {...pageProps} />;
}
For Shopify
Fathom works with Shopify's custom tracking code feature:
- Go to Settings > Customer Events
- Under "Custom Pixel," click Add Custom Pixel
- Paste the Fathom tracking code into the pixel editor
- Save and publish
For Vercel, Netlify, or Other Hosting
If you're using a static site generator (Hugo, Jekyll, Gatsby), add the script to your base template. If you're unsure, check your platform's documentation for "adding custom code to the head" or "injecting scripts."
Verify Installation
Once you've added the code, visit your website in a browser. Then go back to your Fathom dashboard. You should see a green "Tracking Installed" indicator within a few seconds. If you don't see it after a minute, check:
- The site ID is correct
- The script is in the
<head>section, not the footer - You've saved your changes and redeployed your site
- You're not using an ad blocker that blocks analytics
Step 3: Configure Goals and Events
Pageviews are useful, but they don't tell you much. Goals and events let you track what actually matters: signups, purchases, downloads, feature usage.
Understanding Goals vs. Events
Goals are simple—they track when a user lands on a specific page. If your signup confirmation page is /thank-you, you create a goal for that page. Every time someone reaches it, Fathom counts a conversion.
Events are more flexible. They track specific user actions anywhere on your site. You can track a button click, form submission, video play, or download—even if the page doesn't change.
For most founders, you'll use both.
Create Your First Goal
Go to your Fathom dashboard and click Goals (or Conversions).
- Click Add Goal
- Choose Page Goal (this is the simpler option)
- Enter the goal name (e.g., "Signup Confirmation")
- Enter the page URL (e.g.,
/thank-youor/confirmation) - Click Save
Fathom will now count every time someone lands on that page. You can create goals for:
- Signup confirmation pages
- Purchase confirmation pages
- Download pages
- Feature pages (to track feature adoption)
- Pricing page views (to track pricing interest)
Create Your First Event
Events require a tiny bit of code, but they're worth it. Let's say you want to track when someone clicks your "Start Free Trial" button.
First, add this code to your site (in the <head> or before the closing </body> tag):
<script>
function trackEvent(name) {
if (window.fathom) {
window.fathom.trackEvent(name);
}
}
</script>
Then, add an onclick attribute to your button:
<button onclick="trackEvent('Start Free Trial')">Start Free Trial</button>
Now go to Events in your Fathom dashboard and create a new event with the exact name you used (Start Free Trial). Fathom will start tracking whenever someone clicks that button.
Common Events to Track
- Form submissions (contact forms, newsletters, waitlists)
- Button clicks (CTAs, pricing buttons, demo requests)
- Video plays (if you have demo or explainer videos)
- Download clicks (whitepapers, guides, resources)
- Feature usage (if you have in-product analytics)
- External link clicks (to track outbound traffic)
Setting Up Multiple Subdomains
If you have multiple subdomains (e.g., app.myproduct.com and blog.myproduct.com), you have two options:
- Track them separately: Create separate sites in Fathom for each subdomain. This gives you isolated data for each property.
- Track them together: Configure Fathom to track all subdomains under one site. In your tracking code, add:
<script src="https://cdn.usefathom.com/script.js" data-site="YOUR_SITE_ID" data-included-domains="myproduct.com,app.myproduct.com,blog.myproduct.com" defer></script>
Most founders prefer separate sites so they can see app analytics independently from marketing site analytics.
Step 4: Understand Privacy and Compliance
This is where Fathom shines. Unlike Google Analytics, Fathom is built for privacy from the ground up.
How Fathom Protects User Privacy
Fathom doesn't use cookies (unless you opt-in to a specific cookie for returning visitor tracking). It doesn't track users across sites. It doesn't build profiles or sell data. It doesn't use third-party integrations that leak data to ad networks.
Instead, Fathom uses a technique called "hashing." It converts user IP addresses into anonymous identifiers using one-way encryption. The original IP is never stored. This lets Fathom count unique visitors and track sessions without identifying individuals.
GDPR Compliance
If your users are in Europe, you need to comply with GDPR regulations. Fathom is GDPR-compliant by default—no consent banner required. You don't need to ask users for permission to use Fathom because it doesn't collect personal data.
However, you should still mention analytics in your privacy policy. Add a line like: "We use Fathom Analytics, a privacy-first analytics service, to understand how visitors use our site. No personal data is collected."
CCPA and California Privacy Laws
If you have users in California, CCPA compliance requires you to disclose what data you collect and give users the right to opt-out. Fathom's privacy-first approach means you're not collecting the kind of personal data CCPA is designed to protect.
Still, mention Fathom in your privacy policy and offer an opt-out mechanism if you want to be extra cautious.
Enabling Do Not Track Respect
Fathom respects the W3C Do Not Track specification. If a user has Do Not Track enabled in their browser, Fathom won't track them. This is enabled by default—no configuration needed.
Optional: Cookie-Based Tracking for Returning Visitors
By default, Fathom tracks sessions without cookies. But if you want to identify returning visitors (to calculate bounce rate more accurately), you can enable cookie-based tracking.
In your Fathom dashboard, go to Settings > Site Settings and toggle on "Use Cookies for Analytics." This sets a single, first-party cookie that helps Fathom distinguish new visitors from returning ones.
If you enable cookies, update your privacy policy to mention it and consider adding a simple cookie notice.
Step 5: Interpret Your Data and Make Decisions
You've installed Fathom. You've set up goals. Now what?
The Dashboard Overview
Your Fathom dashboard shows:
- Pageviews: Total page views (not unique)
- Unique Visitors: Number of distinct people who visited
- Bounce Rate: Percentage of visitors who left without interacting
- Average Session Duration: How long visitors stayed
- Top Pages: Which pages get the most traffic
- Top Referrers: Where traffic comes from
- Goals/Conversions: How many people completed your tracked actions
Key Metrics That Matter for Founders
Ignore vanity metrics. Focus on these:
Conversion Rate: (Goals / Unique Visitors) × 100. If 1,000 people visit and 50 sign up, your conversion rate is 5%. Track this weekly. Improving it by 1% is a 20% revenue increase.
Traffic to Goal Conversion Ratio: What percentage of traffic to a specific page results in a conversion? If 200 people visit your pricing page but only 10 request a demo, that's a 5% conversion rate. That's low—your pricing page might need work.
Source Quality: Not all traffic is equal. Traffic from your email list might convert at 10%, but traffic from a random blog mention might convert at 0.5%. Fathom shows you referrers—prioritize traffic sources that convert.
Page Performance: Which pages drive the most conversions? Double down on those. Which pages get traffic but no conversions? Those need fixing.
Using Fathom to Validate Product Decisions
Fathom is small and fast, which means you can use it to test ideas quickly. Here's how:
Test a Landing Page Change: Add a new headline to your homepage. Create a goal for that page. Check Fathom in a week. Did bounce rate improve? Did time on page increase? If yes, keep it. If no, revert.
Test a CTA Button: Change your "Sign Up" button to "Start Free" and track clicks with an event. Compare to the previous button's performance. Which converts better?
Test a New Traffic Source: Launch a guest post or ad campaign. Create a UTM parameter (e.g., ?utm_source=guest-post) and track that traffic separately. Does it convert? Is it worth the effort?
Spotting Trends Over Time
Fathom lets you compare date ranges. This is powerful for founders:
- Go to your dashboard
- Click the date picker (top right)
- Select a date range (e.g., "Last 7 Days")
- Click "Compare to" and select a previous period
- Fathom shows you growth (or decline) side-by-side
If you shipped a new feature and traffic dropped 10%, you know something's wrong. If you published a blog post and traffic jumped 30%, you know what works.
Using Fathom With Your Other Tools
Fathom integrates with several platforms that founders use. While Fathom is simpler than Google Analytics, you might want to connect it to your existing dashboard or reporting system.
Fathom has a public API. You can pull data programmatically and feed it into:
- Looker Studio (formerly Data Studio) for custom dashboards
- Slack for daily alerts
- Your own internal tools
For most founders, the Fathom dashboard is enough. But if you're building a more sophisticated analytics infrastructure, the API is there.
Step 6: Advanced Configuration for Specific Use Cases
Once you've got the basics running, you might want to customize Fathom for your specific needs.
Tracking Custom Parameters
Fathom can track custom parameters in your URLs. If you want to see which marketing campaigns drive the most traffic, use UTM parameters:
https://myproduct.com/?utm_source=twitter&utm_medium=post&utm_campaign=launch
Fathom automatically parses these. You'll see them in your Referrers section, broken down by source, medium, and campaign.
Excluding Your Own Traffic
You don't want to skew your analytics with your own pageviews. Fathom lets you exclude traffic from specific IP addresses.
- Find your IP address (search "what's my IP")
- Go to Settings > Site Settings > Exclusions
- Add your IP address
- Save
Now your own visits won't be counted.
Tracking Logged-In Users
If you have a SaaS with user accounts, you might want to track which users are doing what. Fathom lets you tag sessions with user identifiers.
Add this code after a user logs in:
if (window.fathom) {
window.fathom.setUser(userId); // Replace userId with actual user ID
}
Now you can filter analytics by user and see individual user behavior.
Setting Up Real-Time Alerts
Fathom doesn't have built-in alerts, but you can use Zapier to send Slack notifications when certain events happen. This is useful for:
- Notifying your team when someone signs up
- Alerting you if traffic drops unexpectedly
- Sending daily summaries of key metrics
Set up a Zapier integration that pulls data from Fathom's API and sends it to Slack.
Step 7: Maintain and Review Your Analytics
Analytics isn't a set-it-and-forget-it thing. You need to review it regularly and adjust based on what you learn.
Weekly Review (15 Minutes)
Every Monday morning, spend 15 minutes on Fathom:
- Check your top pages—is traffic where you expect it?
- Check your conversion rate—is it stable or declining?
- Check your top referrers—which sources are working?
- Check your goals—how many conversions did you get last week?
Write down one insight. One thing you'll change or test this week based on the data.
Monthly Deep Dive (30 Minutes)
Once a month, dig deeper:
- Compare this month to last month. What changed?
- Look at your top 10 pages. Why are they popular? Can you replicate that success?
- Look at your lowest-converting pages. What's wrong? Can you fix it?
- Check your goals. Which ones are working? Which are stalling?
- Review your traffic sources. Which channels are most valuable?
Quarterly Audit (1 Hour)
Every quarter, do a full audit. This is similar to the quarterly SEO review process for founders that helps you stay on top of your organic visibility.
- Pull a full quarter's data
- Compare to the previous quarter
- Identify your best-performing pages and traffic sources
- Identify your biggest bottlenecks (pages with high traffic but low conversion)
- Set goals for next quarter
Connecting Fathom to Your SEO Strategy
Fathom is great for understanding user behavior, but it's only one piece of the puzzle. To truly understand your organic visibility, you need to connect Fathom with your SEO data.
If you're serious about organic growth, you should also be tracking your rankings, keyword performance, and technical SEO health. Tools like Seoable's domain audit and keyword roadmap give you the complete picture: what keywords you rank for, which ones are growing, and what content gaps you have.
Then, use Fathom to track whether that content actually drives conversions. This combination—SEO data + conversion tracking—tells you which keywords are actually worth targeting.
For example, you might discover that you rank for 100 keywords, but only 5 of them drive traffic that converts. Now you know where to focus your content efforts.
If you're building SEO from scratch, the 100-day roadmap for founders includes setting up analytics as a core step. Fathom fits perfectly into that playbook.
Common Fathom Setup Mistakes and How to Avoid Them
Mistake 1: Not Setting Up Goals
Founders often install Fathom and then just watch pageviews. That's useless. Set up at least 3-5 goals from day one. What do you want people to do? Track it.
Mistake 2: Ignoring Privacy Settings
Fathom is privacy-first, but you still need to mention it in your privacy policy. Don't skip this. It's both a legal and a trust issue.
Mistake 3: Mixing Up Pageviews and Unique Visitors
Pageviews count every page load. If one person visits 10 pages, that's 10 pageviews. Unique visitors count distinct people. One person = one unique visitor, regardless of how many pages they visit.
For conversion rate calculations, always use unique visitors, not pageviews.
Mistake 4: Not Excluding Your Own Traffic
If you're constantly testing your site, your own traffic will skew the data. Exclude your IP address from day one.
Mistake 5: Setting Up Events Wrong
Events need to match exactly. If you set up an event called "Signup" but your code sends "signup" (lowercase), Fathom won't track it. Be consistent with naming.
Mistake 6: Not Comparing Time Periods
Raw numbers are meaningless without context. Always compare this week to last week, this month to last month. That's how you spot trends.
Privacy-First Analytics for Your Entire Team
Once you've got Fathom running, you might want to share access with your team. Fathom lets you invite collaborators.
- Go to Settings > Team Members
- Click Invite Team Member
- Enter their email address
- Choose a role (Viewer, Editor, or Owner)
- Send the invite
Viewer: Can see all analytics data but can't make changes Editor: Can see data and modify goals/events Owner: Full access, including billing and site settings
For most teams, Viewer access is fine. You don't want everyone changing your goal definitions.
Moving Beyond Fathom: When You're Ready to Scale
Fathom is perfect for indie hackers, bootstrappers, and early-stage founders. It's simple, fast, and privacy-first. But as you grow, you might need more sophisticated analytics.
When should you upgrade?
- You're tracking 500K+ pageviews per month: Fathom's free tier maxes out at 100K. You'll need a paid plan.
- You need advanced segmentation: Fathom doesn't let you segment by user properties or build complex cohorts.
- You need real-time alerts and dashboards: Fathom's dashboard is simple; it doesn't have real-time alerting or custom dashboards.
- You're doing complex attribution: Fathom tracks pageviews and events, but not multi-touch attribution across channels.
If you hit these limits, you can upgrade to Fathom's paid plans (starting at $14/month) or explore alternatives like Plausible, Heap, or Amplitude. But honestly, most founders never outgrow Fathom.
For SEO-specific analytics, also consider setting up Google Analytics 4 for SEO tracking alongside Fathom. GA4 integrates with Google Search Console and gives you keyword-level data that Fathom doesn't provide. The combination of Fathom (for privacy and simplicity) and GA4 (for SEO depth) is powerful.
Privacy Considerations: The Bigger Picture
Choosing Fathom is a statement about your values. You're telling your users: "We respect your privacy. We're not tracking you across the web. We're not selling your data."
This matters more than you think. Privacy International's research shows that users increasingly care about privacy. A privacy-first analytics tool is a competitive advantage.
Moreover, the regulatory landscape is shifting. GDPR started in Europe, but privacy laws are spreading globally. Using a privacy-compliant tool like Fathom from day one means you won't have to rip out your analytics infrastructure later.
For a deeper dive into web privacy and analytics, the Electronic Frontier Foundation's analysis of privacy concerns with major analytics platforms is worth reading. It's a reminder of why Fathom's approach is valuable.
Fathom Analytics Checklist
Use this checklist to ensure you've set up Fathom correctly:
- Created a Fathom account
- Added your site to Fathom
- Installed the tracking code on your website
- Verified tracking is working (green indicator in dashboard)
- Created at least 3 goals (signup, demo request, download, etc.)
- Created events for key user actions (button clicks, form submissions)
- Excluded your own IP address from tracking
- Updated your privacy policy to mention Fathom
- Set up team member access (if applicable)
- Scheduled weekly analytics reviews
- Connected Fathom data to your SEO strategy
- Tested that goals and events are tracking correctly
Conclusion: Ship, Track, Learn, Repeat
Fathom Analytics is built for founders like you. It's simple enough to set up in 30 minutes, powerful enough to drive real decisions, and privacy-first enough to sleep well at night.
You don't need a complex analytics infrastructure. You don't need to hire an analytics expert. You don't need to violate your users' privacy. Fathom gives you the essentials: pageviews, unique visitors, conversion tracking, and traffic sources. That's all you need to make better decisions about your product.
The key is to use it. Install it today. Set up 3-5 goals. Review it weekly. Make one small change based on what you learn. Repeat.
Over time, these small changes compound. You'll understand your users better. You'll optimize your funnel. You'll grow faster.
If you're also focused on organic visibility, remember that analytics alone isn't enough. You need SEO data too. That's where connecting your Fathom data with your keyword roadmap and SEO reporting basics becomes critical. Together, they tell you not just what people are doing, but why they're coming to you in the first place.
Ship. Track. Learn. Repeat. That's how founders win.
Get the next one on Sunday.
One short email a week. What is working in SEO right now. Unsubscribe in one click.
Subscribe on Substack →