Page View Counter plugin will help you to know how many readers of every page in your website.
/project/plugins/page-view-counter
/project/plugins/page-view-counter
Key | Value | Description |
---|---|---|
enabled | true | true or false to disable the plugin |
priority | 100 | Page View Counter plugin priority |
Function pageViewCounter()
in namespace Flextype\Plugin\PageViewCounter
/**
* Get page view counter
*
* @return int
*/
function pageViewCounter(): int
Display page view counter in the twig templates
{{ pageViewCounter() }}
Display page view counter in the entry content
[pageViewCounter]
Display page view counter in the php
echo Flextype\Plugin\PageViewCounter\pageViewCounter();