Nextpertise a journal of interesting technical ideas . . .

ahrefs

by Brent Stewart on Monday, Jul 31, 2023

I’ve been writing in this space for about three years. I use Hugo and VSCode and write in markdown, so my workflow is less technical but there are still some aspects of maintaining a web page. My source files, for instance, were fairly easy to organize in the first year but over time have sprawled. Changes to my Hugo template have broken some older internal URLs as well. Even when I recognize the possibility of an issue, it’s hard to track down every instance that broke.

One simple example is that I originally put my entries into the root folder and later moved them to /posts. The issue is that all my older files referenced each other withoot that directory. I’ve corrected this when I see it, but I’m sure that readers have stumbled onto these inadvertant issues.

Mea culpa, but I have a day job and it’s hard to keep up sometimes.

Ahrefs logo A few months ago I found Ahrefs. Ahrefs is a website that has a gazillion tools that are useful in improving website quality. There are a few of these sites and most include a “try before you buy”, but Ahrefs actually has a free tier that provides valuable feedback.

Website Quality

Ahrefs scans this site every Sunday and sends me a report. It has taken a little time to understand how to use the data they provide - remember, this isn’t really what I do. That said, anyone who is interested in maintaining a blog is already putting in a certain amount of work to figure things out and Ahrefs is accessible with little effort.

There are a ton of QA metrics, including all kinds of different types of returned errors. One of the errors is “image file size too large”. It clearly points to the source image and the page where it is used. I was able to load that image into Gimp, change the JPEG quality and scale, and resave to resolve the issue. Health Score Broken links are another area where I’ve been able to drive improvement. Hugo makes it easy to apply a template to markdown and generate a site, but errors in the template get propogated across a lot of places (and I’m sure are annoying to read). I’ve used Ahrefs to quickly point at the offenders and resolve.

If you are developing in Hugo, theres a “compiling” step to get from raw markdown to a website. It’s not always clear where some of the errors come from, so I’ve found that I need to run hugo server -D to generate a live copy of the page for debugging. Sometimes my error is in the page, but I’ve found several instances where the issue was in the interaction of the page with my templates. None fo the issue have been hard to resolve, they just take some thought.

I particularly like that Ahrefs summarizes all the issues into a “Health Score”. This makes it easy to see how you are doing at-a-glance. You can see from my score, I have some improvements to make. That said, Ahrefs also makes it easy to browse the issues and prioritize your time. I have 237 issues with “Multiple meta description tags”. Clearly that’s a tag thats being duplicated at the default template and in a partial. That said, it doesn’t impact the user experience and so I’ve been prioritizing the more mundane link issues.

SEO

Ahrefs has a number of tools around search engine optimization. I’m sure that this would be fantastically interesting if I were building an ecommerce site, but even at an amatuer level it’s cool to see what other sites link back to me. There are also tools around what keywords will bring people to the site, what my most popular pages are, and what topics are most popular.

The SEO side includes errors around mistakes I’ve made that inhibit indexing. Right now I’m missing “Social Graph Tags” that are used by LinkedIn and Facebook - who knew? But the error includes a brief explanation, a link to details, and a “How to Fix” link with good instructions. Of course, Hugo is not HTML, so there’s some level of translation.

Serious webmasters will want to conssider a paid account. The paid account includes a lot more SEO tools and analysis. Accounts start at $83/mo (paid annually), so they’re not for the faint of heart, but I’m really impressed by the quality of what I see. I appreciate that Ahrefs makes valuable information available for hobbiest and recommend it as a good way to start understanding more about how HTML, the web, and the world work.



References:
  https://ahrefs.com

Recent articles related to these tags:
review Hugo Jamstack
Share this article:   
Tweet