Jump to content

Page Hit Counter – Simple Page View Tracking

David Karich

Recommended Posts

25 minutes ago, wbmnfktr said:

Is your user role excluded from tracking?
Is the JS in your site present?
Are there errors in the console?
Is your HTML valid aka are there ending </body> and </html> tags?

Yes!, this happened to me, I forgot to add </body> and </html> tags.

  • Like 1
Link to comment
Share on other sites

  • 8 months later...


is it possible to hook into pageViewTracked from ready.php?
I tried the following, but since I am not so familiar with hooks, it is not working out.

wire()->addHookAfter('PageHitCounter::pageViewTracked', function($pageID) {

$page = wire('pages')->get($pageID);


Thanks for any help.

Link to comment
Share on other sites

  • 9 months later...
23 minutes ago, ShadowByte said:

nice module.

Is it possible to get all page hits from last week (per day) / month (per week) / year (per month) to fill a chart for the admin dashboard?

Thank you in advance



No, this is not possible. As described in the cons, the hits are only summed up and no historical data is collected. The module has no claim to be a statistics module, only a small helper for a quick overview of accesses and interest-based sorting. Please ask @bernhard, he once wrote an extension as a module, which should extend my module with these functions.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...