Skip to main content

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.

https://raw.githubusercontent.com/collective/collective.awstats_hitcounter/master/sitesettings.png

Set the absolute url to look similar to this:

https://raw.githubusercontent.com/collective/collective.awstats_hitcounter/master/configure_url.png

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

https://raw.githubusercontent.com/collective/collective.awstats_hitcounter/master/awstats_hitcounter_screenshot.png

Contributors

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

collective.awstats_hitcounter-0.1.tar.gz (459.9 kB view details)

Uploaded Source

File details

Details for the file collective.awstats_hitcounter-0.1.tar.gz.

File metadata

File hashes

Hashes for collective.awstats_hitcounter-0.1.tar.gz
Algorithm Hash digest
SHA256 5bd41a365f56c66f3afd8ed523736a6ba34b46c1057e9fb978475343d688e341
MD5 14def88682b000d5c88570a9ebb4c48e
BLAKE2b-256 1bdd9e22da4d91dc64b52a2ce20c8ec3d43182808e153e632a0810492b1fd2b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page