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

  • fixed a problem with the way the path was retrieved [pigeonflight]

  • now counts downloaded attachments different from views [pigeonflight]

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

collective.awstats_hitcounter-0.1.2.tar.gz (15.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for collective.awstats_hitcounter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a22ab1dfe26b74144cdb9c46ab1b47ecaff09b2e763f8839535060e9aed7eba0
MD5 170b324fe1a20b56710ee7e65798b46d
BLAKE2b-256 e24075dae310f9e6a55a2804e18488f3e4216992d6313ff57b0b0eb3a26cd7f0

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