{"repo":"bnomei/kirby3-pageviewcounter","free":true,"listed":false,"github":"https://github.com/bnomei/kirby3-pageviewcounter","clone":"git clone https://github.com/bnomei/kirby3-pageviewcounter.git","description":"Track Page view count and last visited timestamp","language":"PHP","stars":26,"topics":["seo","pageview","tracking","sqlite","counter","timestamp","kirby-cms","kirby-plugin","kirby4","kirby5"],"license":"MIT","category":"databases-storage","readme_excerpt":"Kirby Pageview Counter Track Page view count and last visited timestamp Installation - unzip master.zip as folder site/plugins/kirby3-pageviewcounter or - git submodule add https://github.com/bnomei/kirby3-pageviewcounter.git site/plugins/kirby3-pageviewcounter or - composer require bnomei/kirby3-pageviewcounter Usage Echo the tracking a 1px x 1px -image or adding css anywhere in your template. Both techniques will increment the counter but technically they track in a different way. A) via image, tracking scroll below first fold B) via css, tracking mouse hover on body How it works The tracking image will be moved below the fold and trigger the counter with native lazy loading on first user scroll. Why? To avoid most of the bots. It will also work for cached pages using the pages cache (even when cached static). SQLite database (default) To view the tracked count and timestamp this plugin provides two optional fields ( viewcount and lastvisited ). in your page blueprint [!TIP] Kirby has day.js built in which you can use to format your date output. You do not have to add anything to you config files. But you could make some changes to the defaults, like the path to the sqlite file if you wanted to. site/config/config.php Page Fields (alternative) If you do not want to store your tracked counts in a sqlite file then add kirby text or hidden fields to your blueprint. I usually have blueprints for them and extend them in my target pages blueprints. like this... site/blueprints/fi","default_branch":null,"files":null,"tree":[],"storefront":"/r/bnomei","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bnomei/kirby3-pageviewcounter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}