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...

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...
23 minutes ago, 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

 

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

4 hours ago, 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!

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...