This Blog is Now Proudly Google Free

I'm happy to announce that as of today there is no Google on my website. In fact, there is nothing loaded from any other domains than my own. No fonts, no images, and absolutely no trackers. Here's how I did it.

z

I used to use Google Fonts, Font Awesome, and Google Analytics, but each was slowing down the site, plus I'm wary of letting anyone put code into my website that could be spying on my readers. I still need fonts and analytics, though.

For the fonts I've been using three: Merriweather, Oswald, and FontAwesome. Neither of these are directly offered in a form that I can host on my own webserver. They are only provided as TTFs. However, I was able to convert the TTFs to webfonts using Font Squirrel's awsome webfont generator. I uploaded the generated files to my webserver and it just works.

Actually, it didn't quite work at first. My blog is served by a custom NodeJS application running behind Apache. For some reason, even when I set the mimetypes correctly, the web fonts sometimes don't work. I don't know if fonts need some extra HTTP support beyond the mimetype (for block level access?), but my Node app didn't do it right. I didn't have time to debug it so I changed the config to use Apache for all static files, which honestly I should have done from the beginning anyway.

For analytics I found Fathom, an open source and commercial analytics option. You can run it yourself for free (and get the code from github) or pay the Fathom company to host it for you. Since I'm only using it on a few small sites I chose the self hosting option. If I ever switch one of my commercial sites I'll probably have Fathom do it for me.

The setup of Fathom was super easy. I created a sub-domain called stats.josh.earth, ran fathom from the command line on a high port of my choosing, and configured Apache to redirect stats.josh.earth to that port. I created the original account from the commandline so once live I just visit stats.josh.earth in my browser to see the control panel. Easy peasy.

The downside of Fathom is that it doesn't offer all of the many features Google Analytics. The upside is that it doesn't offer all of the many features of Google Analytics. Seriously, the GA interface is so confusing, I feel like I need a degree in marketing just to use it. Fathom gives me the basics: stats over time and what are people doing right now. That's all I want and Fathom gives it too me.

Three cheers for self-hosting websites!

Talk to me about it on Twitter

Posted February 20th, 2019

Tagged: rant