No more cookies 🍪 and comments available (if you want them)
Cookie banners suck, and a lot of websites do them very badly. When I launched unravelled.dev I included Google Analytics since I wanted to know what posts were the most read, you know to give me an indication of what my audience was most interested in. However given that this is a developer centric blog I suspect that a good amount of visitors have browser based ad blockers or use something like NextDNS to block analytics from being collected.
No need for Google Analytics
Since moving my DNS over to Cloudflare I get some basic analytics for free, because they are serving up the requests they know what the popular pages are and aren’t. This means that I can remove Google Analytics along with the tracking cookie. The Cloudflare stats can tell me the things I want to know, namely what has been viewed, refers and country, all without a tracking cookie.
Disqus for comments
Disqus opt in
Introducing the Disqus opt in, now at the bottom of each post you will see the following
Instead of blindly loading Disqus you will be asked to opt in, this in turn will set a cookie to remember your preference, and then load Disqus going forward.
It was very easy to update the Hugo theme to ask users to opt in, updating the
comment.html partial with the following snippet (or take a look on GitHub for the full context).
So go ahead, leave a comment and let me know what you think 😃