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.


$39

Price includes 1 year of updates.
$9/year per site for updates after that.


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


Information

  • Version 1.0.0
  • Last Update 1/22/2019
  • Active Installs 144
  • Compatibility Craft 3
  • License Craft
  • Categories Templating

Report an issue