swizec.com has been around since 2005. For 15 of those years, it's been running Google Analytics to give me a sense of "Is anyone out there?".
Publishing into the void is hard. Analytics tell you whether anyone's reading. Some months I cared more, others less.
You can tell by the traffic drop in the past 2 years that I haven't cared too much for a while. My email readers feel more important.
Hustling for traffic has lost its charm. Chasing keywords (technologies) that play with The Thing Of The Day got tiring. Not to mention I switched from Wordpress to Gatsby and wow did I not realize how much free SEO you get with Wordpress 😅
We're fixing that. Slowly.
Google Analytics does too much
Google Analytics started as a simple solution to a simple problem – you get pageview and visitor counts, Google gets data about the web. A fair trade.
Analytics back then were backend based. Servers counting requests with zero clue whether those requests are people, web crawlers, spam bots, or script kiddies looking for hacks.
Google solved that by moving analytics into JavaScript. "If a user loads and runs your entire page, they must be human" the thinking went.
This is no longer true.
Google Analytics now loads 20kb of compressed JavaScript. Unpacks to 50kb 🤯 What's in there? Lots of privacy busting features I bet.
Dear Google, this is shameful for a company that won't shutup about web performance
— Swizec Teller (@Swizec) July 28, 2022
GoogleAnalytics.js is 20kb x.x pic.twitter.com/E6eCRIXqL3
These days Google Analytics do a lot. Tracking users in great detail as they navigate your site, before they reach your site, after they leave your site. Google knows all.
The goal conversion and sales tracking you can set up blows my mind. And I never once in my life figured out how to set it up right. Shit's too complicated.
I want to write good articles. I don't care to become an analytics expert.
Moving to Google Analytics v4 is a shitshow
Lately Google Analytics has been pushing version 4. A newer better stronger faster ultra customizable alternative.
It started as a "Hey you should try this".
I did. Couldn't get it record even a single pageview.
Last month it got pushy. "You gotta try this, we turn off your current analytics in a year. There is no migration path."
Wait what there's no migration path?
Okay fine. I spent a weekend adding GA4 to a test version of swizec.com. It recorded not a single pageview. Couldn't figure it out.
My friend who works in the SEO industry says GA4 is great for experts. He gets to set up all new dashboards from scratch for every client. Weeks of work. But you get to super fine-tune everything!!
Screw that.
Better alternatives exist now
I've been using Simple Analytics on a few websites for a while. It's one of the first privacy-focused analytics tools showing up to buck the Google Analytics trend.
It's okay. Does what I need. Never grew on me. Not sure why.
A couple weeks back I heard about Plausible on Twitter juuust as I was giving up on Google Analytics v4.
📈Analytics for my blog are now publicly available thanks to @PlausibleHQ.
— Dominik 🔮 (@TkDodo) July 23, 2022
And I just realized I'm getting close to 100k monthly page views 😱 which means I'll have to up my subscription plan soon.https://t.co/ciyUpgjwWu
Simple, fast, privacy first, GDPR compliant, does what I need? Heck yeah sign me up!
Plausible loads a grand total of 1kb of JavaScript to do its thing. 20x less than Google 😍
And event tracking, like a reader subscribing to email, is a quick window.plausible('Email Signup')
away. I have functioning conversion tracking for the first time in 17 years! Could never get it to work before and with Plausible it worked on my first try 💪
GDPR and cookie banners
You need a cookie banner to use Google Analytics. It tracks users so hard the EU said "Enough of this nonsense. At least annoy them into agreeing first!"
I hate those banners and swizec.com was not GDPR compliant. Sorry.
Now it is. Without banners. Because there are no cookies and no user tracking. Thanks Plausible.
Cheers,
~Swizec
PS: I care about your privacy so much that my site uses privacy-first static tweet embeds and lite-youtube embeds. GA was the last cookie this blog was setting.
PPS: I think the size of Google Analytics wouldn't bug me nearly so much if their devrels weren't constantly harping on performance and JavaScript size
Continue reading about I stopped using Google Analytics after 15 years
Semantically similar articles hand-picked by GPT-4
- Lessons from migrating a 14 year old blog with 1500 posts to Gatsby
- 2 quick tips for 250% better Lighthouse scores – CodeWithSwiz 28
- Best blogging week I have ever had
- Tracking RSS readers with Google Analytics
- Coding is the easy part
Learned something new?
Read more Software Engineering Lessons from Production
I write articles with real insight into the career and skills of a modern software engineer. "Raw and honest from the heart!" as one reader described them. Fueled by lessons learned over 20 years of building production code for side-projects, small businesses, and hyper growth startups. Both successful and not.
Subscribe below 👇
Software Engineering Lessons from Production
Join Swizec's Newsletter and get insightful emails 💌 on mindsets, tactics, and technical skills for your career. Real lessons from building production software. No bullshit.
"Man, love your simple writing! Yours is the only newsletter I open and only blog that I give a fuck to read & scroll till the end. And wow always take away lessons with me. Inspiring! And very relatable. 👌"
Have a burning question that you think I can answer? Hit me up on twitter and I'll do my best.
Who am I and who do I help? I'm Swizec Teller and I turn coders into engineers with "Raw and honest from the heart!" writing. No bullshit. Real insights into the career and skills of a modern software engineer.
Want to become a true senior engineer? Take ownership, have autonomy, and be a force multiplier on your team. The Senior Engineer Mindset ebook can help 👉 swizec.com/senior-mindset. These are the shifts in mindset that unlocked my career.
Curious about Serverless and the modern backend? Check out Serverless Handbook, for frontend engineers 👉 ServerlessHandbook.dev
Want to Stop copy pasting D3 examples and create data visualizations of your own? Learn how to build scalable dataviz React components your whole team can understand with React for Data Visualization
Want to get my best emails on JavaScript, React, Serverless, Fullstack Web, or Indie Hacking? Check out swizec.com/collections
Did someone amazing share this letter with you? Wonderful! You can sign up for my weekly letters for software engineers on their path to greatness, here: swizec.com/blog
Want to brush up on your modern JavaScript syntax? Check out my interactive cheatsheet: es6cheatsheet.com
By the way, just in case no one has told you it yet today: I love and appreciate you for who you are ❤️