# Kirby3 Pageview Counter - Track Page view count and last visited timestamp

**URL:** <https://forum.getkirby.com/t/kirby3-pageview-counter-track-page-view-count-and-last-visited-timestamp/23582>\
**Category:** Plugins\
**Tags:** v3\
**Created:** [October 1, 2021, 6:50pm UTC](https://forum.getkirby.com/t/kirby3-pageview-counter-track-page-view-count-and-last-visited-timestamp/23582 "2021-10-01T18:50:50Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![hvsrmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/hvsrmusic/32/2722_2.png) [@hvsrmusic](https://forum.getkirby.com/u/hvsrmusic)\
**Post date:** [March 23, 2025, 12:28am UTC](https://forum.getkirby.com/t/kirby3-pageview-counter-track-page-view-count-and-last-visited-timestamp/23582/21 "2025-03-23T00:28:42Z")

</div>

I decided to give this plugin a try. Sorry for the silly question - does it works with Kirby 4.x?

---

<div class="post-metadata">

**Author:** ![bnomei](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bnomei/32/775_2.png) [@bnomei](https://forum.getkirby.com/u/bnomei)\
**Post date:** [March 23, 2025, 8:37am UTC](https://forum.getkirby.com/t/kirby3-pageview-counter-track-page-view-count-and-last-visited-timestamp/23582/22 "2025-03-23T08:37:20Z")

</div>

yes. the v5 of the plugin will work for kirby4 and kirby5. if unsure you could check the composer.json as most plugin devs would add a “conflicts” property otherwise and allowing composer to pick the right version to install automatically.

---

<div class="post-metadata">

**Author:** ![hvsrmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/hvsrmusic/32/2722_2.png) [@hvsrmusic](https://forum.getkirby.com/u/hvsrmusic)\
**Post date:** [March 23, 2025, 10:42am UTC](https://forum.getkirby.com/t/kirby3-pageview-counter-track-page-view-count-and-last-visited-timestamp/23582/23 "2025-03-23T10:42:49Z")

</div>

Version is ok. Sqlite file is correctly created under site/logs. But it doesn’t count any visit.

- I don’t have any custom config setting and Im running the plugin on localhost
- I tried with a private tab / different browser to be sure I’m logged off from the panel
- Anyway, I changed the code to ‘ignore-panel-users’ =\> false’ to include also logged in users
- …any suggestion to make it works?

Do I need to create an image? Sorry but I don’t know what to check…

---

<div class="post-metadata">

**Author:** ![hvsrmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/hvsrmusic/32/2722_2.png) [@hvsrmusic](https://forum.getkirby.com/u/hvsrmusic)\
**Post date:** [March 23, 2025, 2:53pm UTC](https://forum.getkirby.com/t/kirby3-pageview-counter-track-page-view-count-and-last-visited-timestamp/23582/24 "2025-03-23T14:53:24Z")

</div>

Digging deeper… I get a 500 internal server error. The problem seems to be:

`TypeError: Cannot access offset of type string on string`

on one of the matomo/device-detector functions. Specifically on AbstractParser.php:473

Setting DeviceDetector = false, it works.

[Previous page](https://forum.getkirby.com/t/kirby3-pageview-counter-track-page-view-count-and-last-visited-timestamp/23582.md?page=1)
