PHPackages                             twentyfourhoursmedia/views-work - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. twentyfourhoursmedia/views-work

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

twentyfourhoursmedia/views-work
===============================

plugin for handling pageviews

2.2.1(1y ago)18.1k2[20 issues](https://github.com/24hoursmedia-craftcms/views-work/issues)[5 PRs](https://github.com/24hoursmedia-craftcms/views-work/pulls)proprietaryCSSPHP ^8.0

Since Feb 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/24hoursmedia-craftcms/views-work)[ Packagist](https://packagist.org/packages/twentyfourhoursmedia/views-work)[ RSS](/packages/twentyfourhoursmedia-views-work/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (67)Used By (0)

Views Work plugin for Craft CMS &gt;= 4.x
=========================================

[](#views-work-plugin-for-craft-cms--4x)

*ABANDONED* Unfortunately, we are not able to support this plugin anymore. Feel free to fork this code for your own purposes. We changed the license to MIT license jan 5th 2024 so there are no license limitations.

---

Views work 2.x is compatible with Craft CMS version 4.0 or higher.

---

Please view the full documentation at [io.24hoursmedia.com](https://io.24hoursmedia.com/views-work)!

---

- Track pageviews by day, week, month or grand total
- View popular entries in a widget
- Get popular entries and pageviews on the front-end in twig
- Uses a signed tracking image to register only real page views

Usage
-----

[](#usage)

Show a beacon 1px x 1px image to register a pageview:

```
{# render the image for registration #}
{{ entry | views_work_image }}

```

Get popular items:

```
{% set entries = craft.entries.section('articles').orderByPopular('week', 1).limit(10) %} %}

{# show this weeks views (also supported: today, thisMonth, total) #}
{{ entries.viewsWork.thisWeek }}

```

Resetting view counters
-----------------------

[](#resetting-view-counters)

Some view counters need to be periodically reset (such as the daily and weekly counters). You can either do this with a special url (provided in the control panel), or by setting up a cron job or using a special url.

### Resetting views with a cron job

[](#resetting-views-with-a-cron-job)

Execute this cron at an approprate time, i.e. once every day at 00:01 pm.
It resets the daily, weekly and monthly view counters.

The cron checks wether it is the first day of the week or month before resetting monthly or weekly views.

```
./craft views-work/default/reset-views

```

### Screenshots

[](#screenshots)

[![views-work-dashboard.png](resources/img/views-work-dashboard.png)](resources/img/views-work-dashboard.png)

[![settings-screen-v1.3.png](resources/img/settings-screen-v1.3.png)](resources/img/settings-screen-v1.3.png)

[![views-work-widgets.png](resources/img/views-work-widgets.png)](resources/img/views-work-widgets.png)

---

Brought to you by [24hoursmedia](https://www.24hoursmedia.com)

Logo by

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity76

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~44 days

Recently: every ~62 days

Total

37

Last Release

725d ago

Major Versions

1.3.0.7 → 2.0.0.02022-07-05

PHP version history (2 changes)2.1.2PHP ^8.0.2

2.2.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/11fd118a06f7ae9f089f9a6af92dbef76499aeec6af23821cd924ef2836ecdca?d=identicon)[24hoursmedia-craftcms](/maintainers/24hoursmedia-craftcms)

---

Tags

cmsCraftcraftcmscraft-pluginviews work

### Embed Badge

![Health badge](/badges/twentyfourhoursmedia-views-work/health.svg)

```
[![Health](https://phpackages.com/badges/twentyfourhoursmedia-views-work/health.svg)](https://phpackages.com/packages/twentyfourhoursmedia-views-work)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k57](/packages/verbb-formie)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M51](/packages/nystudio107-craft-seomatic)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/field-manager

Manage your fields and field groups with ease.

195612.2k10](/packages/verbb-field-manager)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)[verbb/comments

Add comments to your site.

13753.7k](/packages/verbb-comments)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
