35.5 Plausible and Fathom: Privacy-Friendly Analytics
Alright, let’s talk about analytics. You know, that thing where you watch strangers click around on your site like it’s some kind of digital ant farm. Most of the big players in this game—I’m looking at you, Google—are data-hoarding monstrosities that slurp up user information with a firehose. It’s creepy, it’s often illegal in places that care about privacy (looking at you, GDPR), and frankly, it’s overkill. You don’t need to know that your user, Vlad from Omsk, first visited your site on a 2012 Samsung fridge. You just need to know that 50 people looked at your pricing page this week.
That’s where privacy-friendly analytics like Plausible and Fathom come in. They’re the antithesis of the surveillance capitalism model. Their entire selling point is that they collect only what they absolutely need to give you actionable insights, and they do it without using cookies or tracking users across the web. It’s analytics with a conscience. And honestly, the data is usually more useful because it’s not buried in a mountain of noise.
The Core Philosophy: What They Don’t Track
This is the most important part. These tools are built on the principle of data minimization. Here’s what they famously do not do:
- No Cookies: No GDPR consent banner needed. This is a huge win for user experience and legal simplicity.
- No Personal Data: They don’t collect IP addresses, fingerprint users, or track any personally identifiable information (PII). Vlad from Omsk remains an anonymous, majestic digital creature.
- No Cross-Site Tracking: They can’t follow Vlad from your site to his favorite blog about vintage tractors. They only see what happens on your domain.
What they do collect is aggregated data: pageviews, referrers, device type (screen size, really), and country (from the anonymized IP’s first three octets). That’s it. And it’s almost always enough.
Getting It On Your Site: The Simple Script
Integration is laughably easy. You get a snippet of JavaScript. You put it in the <head> of your site. You’re done. It’s like the good ol’ days, but without the existential dread.
Here’s what a typical Plausible snippet looks like (yours will have your actual domain):
<head>
<!-- All your other meta tags and whatnot -->
<script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script>
</head>
For Fathom, it’s virtually identical, just a different src URL. The defer attribute is key—it lets the script load without blocking the rest of your page from rendering. Nobody likes a slow website, especially not your analytics script.
Going Beyond Pageviews: Custom Events
The basic setup only tracks pageviews. But what if you want to know how many people clicked that “Big Red Button” that you swear is obvious? You need custom events.
Both services handle this with a simple function call. The beauty is in its simplicity. You’re not configuring a byzantine “goal” in a UI with 50 options; you’re just sending a signal.
// For Plausible
function handleBigRedButtonClick() {
// Your button's actual functionality first...
console.log("Button clicked! Initiating launch sequence...");
// Then fire the analytics event
plausible("BigRedButtonClick", { props: { method: 'Header CTA' } });
}
// For Fathom
function handleBigRedButtonClick() {
console.log("Button clicked! Initiating launch sequence...");
fathom.trackEvent('big_red_button_click');
}
// Attach this function to your button's click event listener
document.getElementById('big-red-button').addEventListener('click', handleBigRedButtonClick);
The props object in Plausible’s version is golden—it lets you add context. Was the button in the header or the footer? Now you’ll know which one actually gets clicks.
The Gotchas and Rough Edges
No tool is perfect, and these are no exception. Their simplicity is a strength until it isn’t.
- Sampling and Scale: For massive, high-traffic sites (think tens of millions of pageviews a month), even these services will sometimes sample your data to keep things performant and affordable. You’re trading granular, second-by-second data for a high-level, principled view. For 99.9% of us, this is a non-issue.
- The “Unknown” Referrer: Since they don’t track users, if someone goes from Google -> Reddit -> your site, the referrer will be Reddit, not Google. The last touch gets the credit. This is a fundamental limitation of cookie-less tracking, and it makes attribution… fuzzy. Accept it.
- Ad Blockers: This is the ironic twist. Privacy-conscious tools are… still analytics tools. And many ad blockers will happily block the scripts for Plausible and Fathom right alongside the Google Analytics one. Your data will be underreported. There’s no easy fix. You can self-host Plausible to get around this, but that’s a whole other can of worms.
So, which one should you choose? Flip a coin. Seriously. They are nearly identical in philosophy and output. Plausible has a slightly more developer-friendly vibe and a great self-hosted option. Fathom has a beautifully simple UI and a stellar reputation. You can’t make a wrong choice here. The important thing is that you’re choosing to respect your users’ privacy while still getting the data you need to make your site better. And that’s a win-win.