How to accurately measure pageviews on a static site

If you have a static site and rely on Google Analytics for visitor data, you may encounter inaccuracies due to ad blockers or JavaScript blocking. To get a more realistic count of visitors, you can implement a simple tracking method using a small 1px x 1px SVG image. Here’s how it works: Create a Node.js web server on a platform like Glitch. Include the SVG image in your website: <img src="https://<name-of-the-project>....

The stack I use to run this blog

In this post, I will describe the technologies and tools I use to run my blog. From the site platform to hosting, and even my workflow for posting articles, I’ll cover it all. The site platform This blog is built using Astro, a static site framework. While I previously used Hugo, I found that I enjoy creating user interfaces with JSX more. Astro, like Hugo, generates fast pages that can be easily deployed on platforms like Netlify or Cloudflare Pages....