Convert Figma logo to code with AI

usefathom logofathom

Fathom Lite. Simple, privacy-focused website analytics. Built with Golang & Preact.

8,009
383
8,009
5

Top Related Projects

21,674

Empowering People Ethically 🚀 — Matomo is hiring! Join us → https://matomo.org/jobs Matomo is the leading open-source alternative to Google Analytics, giving you complete control and built-in privacy. Easily collect, visualise, and analyse data from websites & apps. Star us on GitHub ⭐️ – Pull Requests welcome!

27,621

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

35,388

🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.

37,631

Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.

Quick Overview

Fathom is a simple, privacy-focused alternative to Google Analytics. It provides website owners with essential traffic data without compromising visitor privacy. Fathom is designed to be lightweight, easy to use, and compliant with privacy regulations like GDPR.

Pros

  • Privacy-focused: Does not use cookies or collect personal data
  • Simple and intuitive dashboard
  • Lightweight and fast, with minimal impact on site performance
  • Self-hosted option available for complete data control

Cons

  • Limited features compared to more comprehensive analytics tools
  • Paid service for the hosted version
  • May require technical knowledge for self-hosting
  • Smaller community and ecosystem compared to Google Analytics

Getting Started

To start using Fathom Analytics:

  1. Sign up for an account at usefathom.com
  2. Create a site in your Fathom dashboard
  3. Add the tracking code to your website:
<script src="https://cdn.usefathom.com/script.js" data-site="YOURSITE" defer></script>

Replace YOURSITE with your site's unique ID provided by Fathom.

  1. Verify installation and start viewing your analytics in the Fathom dashboard

For self-hosting, refer to the GitHub repository for detailed installation instructions.

Competitor Comparisons

21,674

Empowering People Ethically 🚀 — Matomo is hiring! Join us → https://matomo.org/jobs Matomo is the leading open-source alternative to Google Analytics, giving you complete control and built-in privacy. Easily collect, visualise, and analyse data from websites & apps. Star us on GitHub ⭐️ – Pull Requests welcome!

Pros of Matomo

  • More comprehensive feature set, including e-commerce tracking, heatmaps, and A/B testing
  • Self-hosted option provides full data ownership and control
  • Larger community and ecosystem with extensive plugin support

Cons of Matomo

  • More complex setup and configuration process
  • Higher resource requirements for hosting and maintenance
  • Steeper learning curve for new users due to extensive features

Code Comparison

Matomo (PHP):

$tracker = new MatomoTracker($idSite, $matomoUrl);
$tracker->doTrackPageView('Page Title');

Fathom (JavaScript):

fathom('trackPageview');

Summary

Matomo offers a more feature-rich analytics solution with greater customization options, while Fathom focuses on simplicity and privacy. Matomo is better suited for larger organizations or those requiring detailed insights, whereas Fathom is ideal for users seeking a straightforward, privacy-focused analytics tool. The code comparison highlights the difference in complexity, with Matomo requiring more setup but offering more granular control over tracking.

27,621

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Pros of Plausible

  • Open-source and self-hostable, with a more transparent development process
  • Lighter weight and faster loading, with a smaller script size
  • GDPR compliant out-of-the-box, with no cookie banners required

Cons of Plausible

  • Less extensive feature set compared to Fathom
  • Newer project with a smaller community and ecosystem
  • Limited integrations with third-party tools and services

Code Comparison

Plausible script integration:

<script defer data-domain="yourdomain.com" src="https://plausible.io/js/plausible.js"></script>

Fathom script integration:

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

Both projects use similar lightweight JavaScript snippets for integration, with Plausible's script being slightly more concise. The main difference lies in the configuration options and data collection methodologies implemented in the backend systems.

35,388

🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.

Pros of PostHog

  • More comprehensive feature set, including product analytics, session recording, and feature flags
  • Open-source with a self-hosted option, offering greater control and customization
  • Supports multiple data sources and integrations

Cons of PostHog

  • More complex setup and maintenance due to its extensive features
  • Higher resource requirements for self-hosting
  • Steeper learning curve for new users

Code Comparison

PostHog (JavaScript):

posthog.init('<YOUR_PROJECT_API_KEY>', {
  api_host: 'https://app.posthog.com'
})
posthog.capture('button_clicked')

Fathom (JavaScript):

window.fathom = window.fathom || function() {
  (fathom.q = fathom.q || []).push(arguments);
};
fathom('set', 'siteId', 'ABCDEFGH');
fathom('trackPageview');

Both projects offer simple JavaScript snippets for basic tracking, but PostHog's API allows for more detailed event capturing. Fathom focuses on simplicity and privacy, while PostHog provides a broader range of analytics and product management features. The choice between them depends on the specific needs of the project and the desired level of complexity in analytics implementation.

37,631

Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.

Pros of Umami

  • Open-source and self-hosted, offering full control over data
  • Supports multiple websites and users within a single installation
  • Provides a more extensive set of analytics features, including real-time data

Cons of Umami

  • Requires more technical setup and maintenance
  • May have higher resource requirements for hosting
  • Less polished user interface compared to Fathom

Code Comparison

Umami (JavaScript):

import { useEffect } from 'react';
import { trackView } from 'umami';

export default function MyComponent() {
  useEffect(() => {
    trackView();
  }, []);
  // ...
}

Fathom (JavaScript):

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

Umami offers more granular control over tracking specific events and views, while Fathom provides a simpler implementation with a single script tag. Umami's approach allows for more customization but requires more integration work, whereas Fathom's method is more straightforward but less flexible.

Both projects aim to provide privacy-focused analytics, but they differ in their approach to implementation and feature set. Umami offers more detailed analytics and multi-site support, making it suitable for users who need comprehensive data. Fathom, on the other hand, focuses on simplicity and ease of use, which may be preferable for those seeking a more streamlined solution.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Fathom Lite - simple website analytics

Go Report Card MIT licensed

Fathom Lite is a previous and open-source version of Fathom Analytics (a paid, hosted Google Analytics alternative). It was the very first version of our software, and has been downloaded millions of times!

While we are no longer adding features to this Lite version, we will be continuing to maintain it long-term and fix any bugs that come up.

Screenshot of the Fathom dashboard

Fathom Lite vs Fathom (hosted)

Today’s Fathom Analytics is a hosted product with simple pricing based on monthly pageviews. The same core capabilities are included on every plan: for example API access, up to 50 sites, custom events and ecommerce tracking, unlimited email reports and CSV exports, and forever data retention—with privacy-law compliance and no cookie banner required for analytics.

If you’d rather not run servers or maintenance yourself, try a 30-day free trial (that link applies a $10 credit on your first invoice). Browse all features or the live demo.

Screenshot of the Fathom Analytics Dashboard

FeatureFathom LiteFathom (hosted)
Fully managed✗ Self-hosted; you run servers and updates✓ Managed for you; pay per pageviews
Cookie-free (no analytics banner)✗ Uses cookies✓ Cookie-free tracking
Current dashboard (real-time, live visitors, filters, details)✗ Older Lite UI✓ Full dashboard — see features
API✗✓ API on all plans
Custom events, ecommerce, UTMs✗✓ Events, revenue, campaigns
EU isolation & custom domains✗✓ EU routing, first-party script domains
GA import, email reports, CSV export, shared dashboards✗✓ Unlimited reports & exports
Many sites per account✗ Typical single install✓ Up to 50 sites (more available)
Email support & SLA✗ Community / as-is✓ Support on every plan
Global CDN, scaling, backups✗ Your responsibility✓ Included
Active feature development✗ Bugfixes / maintenance✓ Ongoing — trial · sign up

Installation

Production

You can install Fathom on your server by following our simple instructions.

Development

For getting a development version of Fathom up & running, go through the following steps.

  1. Ensure you have Go and NPM installed
  2. Download the code: git clone https://github.com/usefathom/fathom.git $GOPATH/src/github.com/usefathom/fathom
  3. Compile the project into an executable: make build
  4. (Optional) Set custom configuration values
  5. (Required) Register a user account: ./fathom user add --email=<email> --password=<password>
  6. Start the webserver: ./fathom server and then visit http://localhost:8080 to access your analytics dashboard

Docker

Building

Ensure you have Docker installed and run docker build -t fathom .. Run the container with docker run -d -p 8080:8080 fathom.

Running

To run our pre-built Docker image, run docker run -d -p 8080:8080 usefathom/fathom:latest

Tracking snippet

To start tracking, create a site in your Fathom dashboard and copy the tracking snippet to the website(s) you want to track.

Content Security Policy

If you use a Content Security Policy (CSP) to specify security policies for your website, Fathom requires the following CSP directives (replace yourfathom.com with the URL to your Fathom instance):

script-src: yourfathom.com;
img-src: yourfathom.com;

Copyright and license

MIT licensed. Fathom and Fathom logo are trademarks of Fathom Analytics.