Automatically ranking popular posts with Matomo
If you’ve been to the start page of this site lately, you may have
noticed the ~elis/popular-posts/ section. It lists the blog posts that
people actually read, based on the last 90 days of traffic. It used to
be something I updated by hand every now and then, but now it refreshes
itself every Sunday night.
How the section works
The section is driven by a single front matter field, popularRank.
Any blog post that sets it is listed on the start page, sorted by the
rank: