In October 2022 traffic to my blog dropped like a stone. What happened? Somehow I ruined my SEO. Don’t be me. I’ll tell you what I got up to and hopefully you can avoid doing the same.
What I did on my holidays
Naturally I blame all of this on a holiday to the British seaside. I was away for a week, and whilst I was away I did not have access to a laptop. This is intentional by the way; I spend too much time on computers one way or another. I force myself to disconnect on holidays. But whilst I didn’t have the ability to program, I had the ability to ponder.
I found myself going down a rabbit hole on SEO. I’d never really thought about it previously, and I thought “what would happen if I made some tweaks?” My expectation was that I’d slightly improve my SEO. Probably not by much, but I’d learn something and it’d be fun. What actually happened was that in October 2022 (after my fiddling), traffic from search engines more or less dried up. Not quite the plan.
Odds are, the was probably because of my actions. I’m not sure what I did wrong, but I’m going to share what I did and maybe you can tell me where I pulled the pin out of the hand grenade.
Frustratingly, the feedback loop on SEO is anything but tight. You make a change, and then weeks (or months) later you see the results. And by then you’ve forgotten what you did. So I’m going to try and document what I did and what I think I did wrong.
Incidentally, I’m hoping someone will read this and tell me what I did wrong. I did something. I assume I did something. Come with me and embrace your inner Sherlock. I’m going to share evidence and maybe you can draw some conclusions.
So what did I get up to? In the time before my traffic fell off a cliff I did all kinds of things. Let’s begin.
Upgraded to Docusaurus 2.2
My blog runs on Docusaurus. I upgraded from 2.1 to 2.2. I can’t see why that would be an issue. I don’t think it is.
Added fontaine
I started using fontaine on my blog. If you haven’t tried it out, you can find it here. It helps reduce Cumulative Layout Shift. The flash of unstyled content jank that you can see when you first land on a site, before fonts have loaded. I can’t see why that would be an issue. It should improve my blogs Core Web Vitals and help stuff rank better, not worse. I think this is a red herring.
Google Analytics – sharing my g-tag with the Docusaurus docs
Here’s where I suspect we may have a candidate. I did a foolish thing. You may be aware that Google are sunsetting Google Analytics as was, in favour of Google Analytics 4. I was using Google Analytics to track my blog traffic and thought “oh well I best migrate then”.
Migration involved using in a new plugin for Docusaurus. However, the docs weren’t great. I managed to work out how to get it working, and I thought I’d help the community by submitting a docs PR. Can you see where this is going?
Yup. I managed to land my GA4 tag in the actual Docusaurus docs… I know, I know. I’m a mug. You might be wondering how I found out. Well the real giveaway was that I’ve never written any blogposts in Chinese.
I started seeing unfamiliar entries in my search traffic. I couldn’t work out what was going on. It didn’t make sense. Then I remembered my PR and the terrible truth became apparent:
It is a truth universally acknowledged, that a developer in possession of a good keyboard, must copy and paste.
Nightmare. Other people were using my GA4 tag.
I did try to roll this back; search GitHub for my tag and submit PRs to remove it. But not every PR was merged. In the end I gave up and created a new GA4 property and started again. Out there right now, there are still websites sending my old GA4 tag traffic to Google. What a horlicks.
I don’t know if Google tracks for sites sharing analyt