Grabs hit counts from awstats and returns as json formatted data
Project description
Installation & Usage
Add collective.awstats_hitcounter to your buildout and re-run bin/buildout
Then install on your plone site under “Site Setup” > “Add-ons”
Once this is installed you know have the facility to dynamically pull in a counter.
Configuration
After installation configure your awstats url. You can do so by going to Site Setup > Awstats HitCounter Settings.
Set the absolute url to look similar to this:
Usage
collective.awstats_hitcounter adds a viewlet with the id ‘awstats_hitcounter’ which pulls in the stats from awstats.
Add this javascript at the bottom of pages where you want the counter to show:
$("#awstats_hitcounter").load(window.location.pathname + "/@@awstats_hitcounter_view")
The screenshot below illustrates the expected behaviour
Contributors
David Bain, david@alteroo.com
Changelog
0.1 (unreleased)
Initial release. [pigeonflight]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.awstats_hitcounter-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bd41a365f56c66f3afd8ed523736a6ba34b46c1057e9fb978475343d688e341 |
|
MD5 | 14def88682b000d5c88570a9ebb4c48e |
|
BLAKE2b-256 | 1bdd9e22da4d91dc64b52a2ce20c8ec3d43182808e153e632a0810492b1fd2b8 |