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.1
moved the hitcounter viewlet to the viewlets.IPortalFooter
added custom app.js which asynchronously pulls stats from the ‘awstats_hitcounter_view’
the stats view now returns the content type, creation date and number of views [pigeonflight]
update to use BeautifulSoup for scraping awstats [pigeonflight]
0.1
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 866c7544ebc731011baeda2c96715b1cd1b42616ec89b2bc7673796f47f4a621 |
|
MD5 | dd52d3a7a828e19c8e92736fb0d4668d |
|
BLAKE2b-256 | c7e6aab69c9345b9c57ec324c850cadffb5e1afb4487fdb48db145db5996bb2f |