Skip to content
Counts and displays the number of times that an entry has been viewed in Craft CMS.
Branch: v2
Clone or download
Latest commit cdd20e8 Jan 19, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src typo Jan 12, 2019 Update Aug 24, 2018
composer.json 2.0.2 Jan 19, 2019

Entry Count Plugin for Craft CMS 3

The Entry Count Plugin was built specifically for training purposes and is used in the Craft Plugin Development video course.

It allows you to count and display the number of times that an entry has been viewed in Craft CMS.


Craft CMS 3.0.0 or later.


To install the plugin, search for "Entry Count" in the Craft Plugin Store, or install manually using composer.

composer require putyourlightson/craft-entry-count

Twig Tags


{% set count = craft.entryCount.count( %}

Entry count: {{ count }}
First count: {{ count.dateCreated }}
Last count: {{ count.dateUpdated }}


{% set entries = craft.entryCount.entries.all() %}

{% for entry in entries %}
    {% set count = craft.entryCount.count( %}
    {{ entry.title }} ({{ count }} views)
{% endfor %}


{% do craft.entryCount.increment( %}

Plugin icon by Made by Made from the Noun Project

You can’t perform that action at this time.