Views Work v1.0
Track pageviews and content popularity in Craft CMS
More Craft plugins

Setup and cron job

Settings

There are not many settings, just the setting to set up a secret key for signing the image urls.
Just go to settings and save, a cryptographically secure key is generated.


Cron job

To reset the daily, weekly and monthly view counters, you need to run a cron job once a day.
The plugin automatically detects wether it is the first of the month, week and resets the appropriate counters.


# The command to execute:
php /path_to_project/craft views-work/default/reset-views

# Example of a line in crontab:
5 0 * * * php /path_to_project/craft views-work/default/reset-views