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: Oct 10, 2026, 9:58:34 AM