Jump to content

Page Hit Counter – Simple Page View Tracking


David Karich

Recommended Posts

  • 8 months later...

hej,

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...
  On 9/23/2023 at 9:51 AM, ShadowByte said:

Hello,
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

Greetings

 

Expand  

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

  • 8 months later...

Hi @All, Hey @David Karicha great module!!! I mean, the possibility of tracking keywords is speechless...

I've updated my botlist.txt file with this:

go-http-client|googlebot|bingbot|link|googlebot-image|yandexbot|semrushBot|ahrefsBot|zoominfobot|applebot|seznambot|yak-linkfluence|barkrowler|blexbot|yandeximages|cfnetwork|linkedinbot|feed|dalvik|validator|baiduspider|2345Explorer|survey|surdotlybot|

But I am not sure how to add: "Screaming Frog SEO Spider" with empty spaces between words.

Thanks!

Link to comment
Share on other sites

  On 6/17/2024 at 4:56 AM, Leftfield said:

Hi @All, Hey @David Karicha great module!!! I mean, the possibility of tracking keywords is speechless...

I've updated my botlist.txt file with this:

go-http-client|googlebot|bingbot|link|googlebot-image|yandexbot|semrushBot|ahrefsBot|zoominfobot|applebot|seznambot|yak-linkfluence|barkrowler|blexbot|yandeximages|cfnetwork|linkedinbot|feed|dalvik|validator|baiduspider|2345Explorer|survey|surdotlybot|

But I am not sure how to add: "Screaming Frog SEO Spider" with empty spaces between words.

Thanks!

Expand  

Hi @Leftfield

the detection is done via a simple RegEx in a match group. You can add the string "Screaming Frog SEO Spider" with spaces to the list. But without a pipe at the end.

go-http-client|googlebot|bingbot|link|googlebot-image|yandexbot|semrushBot|ahrefsBot|zoominfobot|applebot|seznambot|yak-linkfluence|barkrowler|blexbot|yandeximages|cfnetwork|linkedinbot|feed|dalvik|validator|baiduspider|2345Explorer|survey|surdotlybot|Screaming Frog SEO Spider

 

  • Thanks 1
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...