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:21 PM