Adding a list of related posts at the end of article is a tried and tested way to keep the visitors engaged with your blog for longer duration. It gives them a reason not to click the back button, thus increasing your blog's page views and average visit duration; and decreasing bounce rate.
There are plenty of related post widgets for Blogger but I was not satisfied with them (in fact, I am never satisfied with any piece of code). Therefore, I decided to write my own, with the following features:
- Light weight vanilla JavaScript code — no JavaScript framework required
- Customizable widget layout — just about everything can be styled using CSS
- Post thumbnails support — because a thumbnail image is worth a thousand words
- Google Analytics integration — clicks are logged in Google Analytics
- Lazy-loadable — the script can be loaded asynchronously
- Easy installation — does not require editing Blogger template