Vanta Logo
SPONSOR
Automate SOC 2 & ISO 27001 compliance with Vanta. Get $1,000 off.
Up to date
Published
Updated on
4 min read

Trevor I. Lasn

Staff Software Engineer, Engineering Manager

Why I moved from Google Analytics to Simple Analytics

I ditched Google Analytics for a privacy-focused analytics tool that bypasses ad blockers

I stared at my Google Analytics dashboard, feeling overwhelmed by the sheer amount of data. Bounce rates, user flows, behavior tracking - it was all too much. I just wanted to know how many people read my blog posts. That’s it. No tracking, no personal data, just simple numbers.

After trying various analytics tools, I kept hitting the same wall: ad blockers. My numbers were way off, which was a problem when talking to sponsors.

The solution turned out to be simple: I set up a custom subdomain for my analytics. Instead of loading scripts from simpleanalytics.com (which ad blockers instantly block), my analytics now load from my own domain - api.trevorlasn.com.

Simple Analytics

All it took was adding one CNAME record in my DNS settings. My visitor counts finally matched my server logs. See the full setup guide here.

The final straw came when I realized my analytics setup was part of the problem I wanted to solve. Here I was, writing about web development best practices and privacy, while running scripts that tracked my visitors’ every move. It felt hypocritical.

I needed something different. Something that aligned with my values. That’s when I found Simple Analytics.

First off, it’s built and hosted in the EU, which means serious privacy regulations. But what really got me was their philosophy - they believe in an internet that’s friendly to website visitors. No cookies. No personal data collection. Just clean, simple analytics.

Simple Analytics Dashboard

That’s it. No behavior tracking, no user profiles, no creepy stuff. Just the numbers I need to understand my blog’s reach.

Performance

Analytics scripts should only load in production. I use defer to ensure it loads after the page content - it weighs just 4KiB gzipped and doesn’t block rendering at all.

Here’s my Lighthouse mobile performance score with Simple Analytics enabled:

Performance

The script only loads in production import.meta.env.PROD, and I added a fallback for users with JavaScript disabled. I’m using Astro, but you could implement similar production-only loading with Next.js, Remix, or any other modern framework.

JavaScript
{
import.meta.env.PROD && (
<>
<script defer src="https://api.trevorlasn.com/latest.js" />
<noscript>
<img
src="https://api.trevorlasn.com/noscript.gif"
alt=""
referrerpolicy="no-referrer-when-downgrade"
/>
</noscript>
</>
)
}

I’m on the paid team plan because of my traffic volume. While it’s more than Google Analytics (which is free), I see it as an investment in both my values and my readers’ privacy.

Think about it this way: if you’re spending hours creating content, don’t you want accurate data about who’s reading it? Without fighting ad blockers or feeling guilty about privacy invasion?

Is It Right for You?

If you’re like me - someone who just wants clean, honest analytics without the privacy headaches - then yes, Simple Analytics might be perfect. But if you need deep user behavior analysis or complex conversion tracking, you might want to look elsewhere.

Remember, sometimes less is more. In an age where we’re drowning in data, there’s something refreshing about just getting the numbers you actually need.

I believe we’re seeing a shift in web analytics. The era of tracking everything just because we can is ending. More developers are realizing that:

  • Most analytics data never gets used
  • Privacy is becoming a competitive advantage
  • Simple metrics often tell you everything you need to know

For me, moving to Simple Analytics wasn’t just about getting better numbers - it was about aligning my tools with my values. Sometimes the simple solution really is the best one.

If you found this article helpful, you might enjoy my free newsletter. I share developer tips and insights to help you grow your skills and career.


More Articles You Might Enjoy

If you enjoyed this article, you might find these related pieces interesting as well. If you like what I have to say, please check out the sponsors who are supporting me. Much appreciated!

Tech
4 min read

Sentry's LLM Integration Makes Error Debugging Actually Smart

How Sentry.io is using Large Language Models to transform error debugging from mindless stack trace reading to intelligent problem-solving

Nov 24, 2024
Read article
Tech
5 min read

Cloudflare's AI Content Control: Savior or Threat to the Open Web?

How Cloudflare's new AI management tools could revolutionize content creation, potentially reshaping the internet landscape for both website owners and AI companies.

Sep 24, 2024
Read article
Tech
5 min read

Recursion Explained In Simple Terms

Understanding recursion through real examples - why functions call themselves and when to use them

Nov 22, 2024
Read article
Tech
3 min read

When Will We Have Our First AI CEO?

Welcome to the future of corporate leadership. It's efficient, profitable, and utterly inhuman

Nov 4, 2024
Read article
Tech
5 min read

The Fight to Free JavaScript from Oracle's Control

The creator of JavaScript and Node.js are challenging Oracle's control over the JavaScript name

Nov 23, 2024
Read article
Tech
5 min read

Repopack (now Repomix): Pack Your Entire Repository Into A Single File

A tool that packages your code to easily share with LLM models.

Oct 21, 2024
Read article
Tech
5 min read

Pkl: Apple's New Configuration Language That Could Replace JSON and YAML

A deep dive into Pkl, Apple's configuration language that aims to replace JSON and YAML

Nov 1, 2024
Read article
Tech
11 min read

Google's Journey: From Search Engine to Tech Giant

Exploring the key innovations and strategies that transformed Google into a global technology leader

Oct 1, 2024
Read article
Tech
3 min read

Open-source is where dreams go to die

Work for free and in return watch your passion get crushed by entitled users who are never satisfied

Feb 26, 2025
Read article

This article was originally published on https://www.trevorlasn.com/blog/simple-analytics. It was written by a human and polished using grammar tools for clarity.