Want to track popular content or show a top 5 of your most read blog posts? Popular is the missing page view tracker for your Statamic website. Fast, batteries included and build for scale.
Popular registers all page views for individual pages and entries.
Have a look at the full documentation for more details.
To show a top 5 of your most read blog posts, simply do this:
<ol>
{{ collection from="blog" limit="5" sort="pageviews:desc" }}
<li>{{ title }} ({{ pageviews }})</li>
{{ /collection }}
</ol>
Popular uses the SQLite3 PHP extension, which is enabled by default.
Popular is commercial software but has an open-source codebase. If you want to use it in production, you'll need to buy a license from the Statamic Marketplace.
Developed by Arthur Perton