35.6 Cookie Consent Banners

Alright, let’s talk about the web’s most performative and universally loathed feature: the cookie consent banner. You know the one. It’s the digital equivalent of a pop-up ad asking if you’d like to hear about your car’s extended warranty, but with more legal gravitas. We have to implement these things not because they’re a good user experience—they’re almost universally terrible—but because a bunch of very serious people in Brussels decided we needed them. Your job is to implement one without making your site look like a desperate, privacy-invading monster.

35.5 Plausible and Fathom: Privacy-Friendly Analytics

Alright, let’s talk about analytics. You know, that thing where you watch strangers click around on your site like it’s some kind of digital ant farm. Most of the big players in this game—I’m looking at you, Google—are data-hoarding monstrosities that slurp up user information with a firehose. It’s creepy, it’s often illegal in places that care about privacy (looking at you, GDPR), and frankly, it’s overkill. You don’t need to know that your user, Vlad from Omsk, first visited your site on a 2012 Samsung fridge. You just need to know that 50 people looked at your pricing page this week.

35.4 Google Analytics 4 Integration

Right, let’s talk about integrating Google Analytics 4. You’ve probably noticed that the old analytics.js (Universal Analytics) is being put out to pasture. GA4 is the new, “smarter” model, and it’s… well, it’s a different beast. It’s event-based, which is actually a good thing once you wrap your head around it. Instead of thinking about “pageviews” and “sessions” as these sacred, pre-defined pillars, you now think about discrete user interactions. This is more flexible and frankly, more honest about how the web actually works. The downside? The documentation is a sprawling mess and the Google Tag Manager UI feels like it was designed by a team that never actually had to use it under a deadline. But don’t worry, we’re going to bypass the fluff and get to the good stuff.

35.3 Self-Hosted Comments: Commento, Remark42, Isso

Right, so you’ve decided to escape the dystopian panopticon of third-party comment systems. Good for you. You’re tired of handing your users’ data to some faceless corp, watching your site’s performance tank from a dozen external scripts, and dealing with interfaces cluttered with “engagement” nonsense. Self-hosting your comments is a noble pursuit, and we’re going to look at the three main contenders that don’t require a full-blown Django application to get running: Commento, Remark42, and Isso.

35.2 Utterances and Giscus: GitHub Issues/Discussions as Comments

Right, let’s talk about turning your pristine, static website into a place where people can… well, talk. You could build a full-blown comment system yourself. You’d need a database, an API, authentication, spam protection, moderation tools—and about a week of your life you’d never get back. Or, you can be smart and let GitHub do the heavy lifting. That’s the whole premise behind Utterances and its slicker successor, Giscus. They’re brilliantly simple: they treat your website’s comments section as a GitHub issue or discussion thread. A visitor leaves a comment on your site? It magically appears as a new issue or comment on a designated GitHub repo. It’s authentication handled by GitHub’s OAuth, content stored on GitHub’s servers, and moderation done through a platform you already know. It’s almost too clever.

35.1 Disqus: The Classic Hugo Comment Integration

Right, let’s talk about Disqus. It’s the comment system you love to hate, or maybe just hate. But for a long time, it was the only game in town for adding dynamic, managed comments to a static Hugo site without building your own backend from scratch. It’s the digital equivalent of a well-worn, slightly uncomfortable pub stool—it’s been there forever, it does the job, and everyone knows where to find it, even if the upholstery is a bit suspect.

— joke —

...