Track views via Twig, PHP, or AJAX
Basic tracking looks like this...
{% do craft.viewCount.increment(elementId) %}
And there are several more advanced ways to increment a view counter.
Allow multiple counters on the same element
If you need to track multiple aspects of the same element, it's easy to do so! Simply specify an optional key when setting up the tracking mechanism.
Sort by "most viewed"
Once you've started logging views, you'll likely want to know which items have been viewed the most...
Display view totals in the control panel
You can add a "Total Views" field, which displays a read-only total for each element.
Etc, etc, etc.
It's a very flexible plugin. Read the full documentation to see what else is possible.
Still have questions? Contact us at support@doublesecretagency.com.
Standard
Plus $9/year after one year.
To install this plugin, copy the command above to your terminal.
This plugin doesn't have any reviews.