Pagehits

Creator: Bob Kosse (ictlogic)

Need help installing this extra?

About Pagehits

This snippet counts the hits per page. You can display the number of hits per resource ID and set a timeout so a pagerefresh will not count as a hit.

Information

Released
January 23, 2012

Supported Database
MySQL

License
GPLv2

Supported Versions
2.2 - Current

Downloads
1,242

Instructions

--------------------Extra: Pagehits--------------------Version: 1.0.1 --------------------How to use--------------------On your page (or in the template) just add the update hits snippet    [[!updatehits]]You can set the timeout by adding the timeout parameter:    [[!updatehits? &timeout=`3600`]]The Timeout is set in secondsYou can also show the hits on a page by using    [[!showhits]]There are 2 parameters available to customize the showhits snippet:    &tpl    (for use of your own template chunk)    &rid    (for showing the hits of an other resource id)    Example: you would like the show the hits of document 3 and use the chunk 'PageHitChunk' as template:    [[!showhits? &tpl=`PageHitChunk` &rid=`3`]]

Current releases

1.0-beta2
View | Download
January 23, 2012
2.2 - Current