View Count
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.
Price includes 1 year of updates.
$9/year per site for updates after that.
- Installation Instructions
To install this plugin, copy the command above to your terminal.
- Active Installs
- 593
- License
- Craft
- Last release
- September 13, 2023
- Activity (30 days)
- 1Closed Issues0Open Issues0Merged PRs0Open PRs