I had my reasons when I wanted to self-host my technical articles. I just didn’t like the constraints most blogging platforms would put on users before they could actually read my content. One thing I hadn’t figured out was the SEO and the performance of my posts and site. I used to get some paid articles to post on my blogs, and those two factors were a major selling point.

From one of Django’s websites issues on djangoproject.com usage analytics, I learnt about Cabin.

There’s many tools to use that can be integrated for site analysis:

On my usage, Cabin & Umami is great. For this post, I will focus on how I setup cabin on my site.

Cabin + Hugo site

Cabin has a straightforward installation process.

On your Hugo site: Create or edit the file layouts/partials/footer.html and add the code:

<script async defer src="https://scripts.withcabin.com/hello.js"></script>

… and that’s it.

More documentation:

https://docs.withcabin.com/install#hugo

Example of a typical analysis from Cabin:

https://withcabin.com/public/OSp8ESKGZICi