You are viewing an older version of the Asset Count documentation (2.x).
View the latest version (3.x) →
Template Guides
Available Variables
The following methods are available to call in your Twig templates:
craft.assetCount.getCount(assetId)
Returns the view count for the provided assetId.
craft.assetCount.increment(assetId)
Increments the view count for the provided assetId.
Last updated: May 2, 2026, 3:24:23 PM